Import
Examples
Initialize providers
Route to model
API
initializeProviders(config)
Set up providers with API keys
Returns: void
Exports
Functions
| Name | Description |
|---|---|
getProvider | Get provider by name |
getProviderFromModel | Resolve provider/model string |
initializeProviders | Set up providers with API keys |
Classes
| Name | Description |
|---|---|
AnthropicProvider | Anthropic implementation |
BaseProvider | Abstract provider base class |
GoogleProvider | Google AI implementation |
OpenAIProvider | OpenAI implementation |
Types
| Name | Description |
|---|---|
AnthropicConfig | Anthropic config |
CompletionRequest | Normalized completion request |
CompletionResponse | Normalized completion response |
GoogleConfig | Google AI config |
OpenAIConfig | OpenAI config |
Provider | Provider interface |
ProviderConfig | Single provider config |
ProvidersConfig | All providers config map |
Related
veryfront/agent: Agents use providers for AI models