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
|
||||
// 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
|
||||
|
||||
Reference in new issue
Block a user