fix: update MaxCompletionTokens for model prefix handling in buildTestRequest function
This commit is contained in:
@@ -152,8 +152,8 @@ func buildTestRequest(model string) *dto.GeneralOpenAIRequest {
|
|||||||
Model: "", // this will be set later
|
Model: "", // this will be set later
|
||||||
Stream: false,
|
Stream: false,
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(model, "o1-") {
|
if strings.HasPrefix(model, "o1") {
|
||||||
testRequest.MaxCompletionTokens = 1
|
testRequest.MaxCompletionTokens = 10
|
||||||
} else if strings.HasPrefix(model, "gemini-2.0-flash-thinking") {
|
} else if strings.HasPrefix(model, "gemini-2.0-flash-thinking") {
|
||||||
testRequest.MaxTokens = 2
|
testRequest.MaxTokens = 2
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user