Fix: strip gemini protocol prefix for OpenAI-compatible endpoint
This commit is contained in:
parent
316b0f64ad
commit
c0d90f2ca8
2 changed files with 2 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ data:
|
|||
},
|
||||
{
|
||||
"model_name": "gemini-flash",
|
||||
"model": "gemini/gemini-3-flash-preview",
|
||||
"model": "gemini-3-flash-preview",
|
||||
"api_base": "https://generativelanguage.googleapis.com/v1beta/openai/",
|
||||
"api_key": "file://secrets/google-api-key",
|
||||
"request_timeout": 300
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ var stripModelPrefixProviders = map[string]struct{}{
|
|||
"lmstudio": {},
|
||||
"azure-ai": {},
|
||||
"azure-foundry": {},
|
||||
"gemini": {},
|
||||
}
|
||||
|
||||
func WithMaxTokensField(maxTokensField string) Option {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue