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¶
- Shakespeare DIY installed (GitHub)
- An amazee.ai API key
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:
Verify¶
Start Shakespeare DIY and run a query. Check my.amazee.io → Usage to confirm requests are flowing through your amazee.ai endpoint.
Troubleshooting¶
- Auth errors
- Verify
OPENAI_API_KEYis set. Runecho $OPENAI_API_KEYto check. - Model not found
- Check Available Models for models available in your region.
- Connection errors
- Make sure
OPENAI_BASE_URLincludes/v1and uses the correct region code.