fix(egress): default base URL for the gemini-interactions provider class (#457)
This commit is contained in:
1 file changed
+13
-12
@@ -81,18 +81,19 @@ func ProviderHost(class, baseURL string) (string, error) {
|
|||||||
// classBaseURL mirrors the default base URL each ai-sdk provider class uses
|
// classBaseURL mirrors the default base URL each ai-sdk provider class uses
|
||||||
// when a provider sets none.
|
// when a provider sets none.
|
||||||
var classBaseURL = map[string]string{
|
var classBaseURL = map[string]string{
|
||||||
"openai": "https://api.openai.com",
|
"openai": "https://api.openai.com",
|
||||||
"openaiobject": "https://api.openai.com",
|
"openaiobject": "https://api.openai.com",
|
||||||
"anthropic": "https://api.anthropic.com",
|
"anthropic": "https://api.anthropic.com",
|
||||||
"cohere": "https://api.cohere.com",
|
"cohere": "https://api.cohere.com",
|
||||||
"deepseek": "https://api.deepseek.com",
|
"deepseek": "https://api.deepseek.com",
|
||||||
"gemini": "https://generativelanguage.googleapis.com",
|
"gemini": "https://generativelanguage.googleapis.com",
|
||||||
"groq": "https://api.groq.com",
|
"gemini-interactions": "https://generativelanguage.googleapis.com",
|
||||||
"minimax": "https://api.minimax.io",
|
"groq": "https://api.groq.com",
|
||||||
"mistral": "https://api.mistral.ai",
|
"minimax": "https://api.minimax.io",
|
||||||
"perplexity": "https://api.perplexity.ai",
|
"mistral": "https://api.mistral.ai",
|
||||||
"xai": "https://api.x.ai",
|
"perplexity": "https://api.perplexity.ai",
|
||||||
"togetherai": "https://api.together.xyz",
|
"xai": "https://api.x.ai",
|
||||||
|
"togetherai": "https://api.together.xyz",
|
||||||
}
|
}
|
||||||
|
|
||||||
// ModelProxyEnvFor is the environment entry list naming the proxy, its hosts
|
// ModelProxyEnvFor is the environment entry list naming the proxy, its hosts
|
||||||
|
|||||||
Reference in new issue
Block a user