fix(relay-gemini): add unsupported models to CovertGemini2OpenAI function
This commit is contained in:
@@ -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",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user