feat: support gemini-2.0-flash-thinking #639 #637

This commit is contained in:
CalciumIon committed 2024-12-20 13:20:07 +08:00
1 parent 7569947544
commit 3a97be9f12
4 files changed
+16 -4

No files matched your search

+2
View File
@@ -153,6 +153,8 @@ func buildTestRequest(model string) *dto.GeneralOpenAIRequest {
}
if strings.HasPrefix(model, "o1-") {
testRequest.MaxCompletionTokens = 1
} else if strings.HasPrefix(model, "gemini-2.0-flash-thinking") {
testRequest.MaxTokens = 2
} else {
testRequest.MaxTokens = 1
}