Skip to content

Use Shakespeare DIY with amazee.ai

Shakespeare DIY is an open-source AI assistant framework. Connect it to amazee.ai to route requests through your regional endpoint with data residency and budget controls.

Prerequisites

Connect Shakespeare DIY to amazee.ai

Shakespeare DIY supports OpenAI-compatible APIs. Set these environment variables:

export OPENAI_API_KEY="your-amazee-ai-api-key"
export OPENAI_BASE_URL="https://llm.[your-region].amazee.ai/v1"

Replace [your-region] with your region code (e.g. ch103, us103, de103).

Then reload your shell:

source ~/.zshrc   # or ~/.bashrc

Verify

Start Shakespeare DIY and run a query. Check my.amazee.ioUsage to confirm requests are flowing through your amazee.ai endpoint.

Troubleshooting

Auth errors : Verify OPENAI_API_KEY is set. Run echo $OPENAI_API_KEY to check.

Model not found : Check Available Models for models available in your region.

Connection errors : Make sure OPENAI_BASE_URL includes /v1 and uses the correct region code.