Commit 7469446a by CaIon

fix(relay-gemini): add unsupported models to CovertGemini2OpenAI function

parent ef721bb0
...@@ -60,6 +60,8 @@ func CovertGemini2OpenAI(textRequest dto.GeneralOpenAIRequest, info *relaycommon ...@@ -60,6 +60,8 @@ func CovertGemini2OpenAI(textRequest dto.GeneralOpenAIRequest, info *relaycommon
if strings.HasSuffix(info.OriginModelName, "-thinking") { if strings.HasSuffix(info.OriginModelName, "-thinking") {
// 硬编码不支持 ThinkingBudget 的旧模型 // 硬编码不支持 ThinkingBudget 的旧模型
unsupportedModels := []string{ unsupportedModels := []string{
"gemini-1.5",
"gemini-2.0",
"gemini-2.5-pro-preview-05-06", "gemini-2.5-pro-preview-05-06",
"gemini-2.5-pro-preview-03-25", "gemini-2.5-pro-preview-03-25",
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment