The model@@provider syntax
Moda uses a simple syntax to route requests to the right provider:gpt-4o@@openairoutes to OpenAI’s GPT-4oclaude-3-5-sonnet-20241022@@anthropicroutes to Anthropic’s Claudeclaude-3-opus@@bedrockroutes to AWS Bedrock
Why this syntax?
This approach lets you:- Switch providers easily - Change from OpenAI to Anthropic by updating one field
- Use the same model on different providers - Some Claude models are available on both Anthropic and Bedrock
- Keep your code simple - No need for provider-specific SDKs or configurations
Examples
OpenAI models
Anthropic models
AWS Bedrock models
Switching providers
To change from one provider to another, just update themodel field: