fix(egress): default base URL for the gemini-interactions provider class (#457)

This commit is contained in:
sam committed 2026-11-10 21:56:06 +11:00
1 parent c3e64e5485
commit cc49fecc77
1 file changed
+13 -12
+13 -12
View File
@@ -81,18 +81,19 @@ func ProviderHost(class, baseURL string) (string, error) {
// classBaseURL mirrors the default base URL each ai-sdk provider class uses
// when a provider sets none.
var classBaseURL = map[string]string{
"openai": "https://api.openai.com",
"openaiobject": "https://api.openai.com",
"anthropic": "https://api.anthropic.com",
"cohere": "https://api.cohere.com",
"deepseek": "https://api.deepseek.com",
"gemini": "https://generativelanguage.googleapis.com",
"groq": "https://api.groq.com",
"minimax": "https://api.minimax.io",
"mistral": "https://api.mistral.ai",
"perplexity": "https://api.perplexity.ai",
"xai": "https://api.x.ai",
"togetherai": "https://api.together.xyz",
"openai": "https://api.openai.com",
"openaiobject": "https://api.openai.com",
"anthropic": "https://api.anthropic.com",
"cohere": "https://api.cohere.com",
"deepseek": "https://api.deepseek.com",
"gemini": "https://generativelanguage.googleapis.com",
"gemini-interactions": "https://generativelanguage.googleapis.com",
"groq": "https://api.groq.com",
"minimax": "https://api.minimax.io",
"mistral": "https://api.mistral.ai",
"perplexity": "https://api.perplexity.ai",
"xai": "https://api.x.ai",
"togetherai": "https://api.together.xyz",
}
// ModelProxyEnvFor is the environment entry list naming the proxy, its hosts