fix: Adjust MaxTokens logic for non-Claude models in test request
This commit is contained in:
@@ -187,7 +187,9 @@ func buildTestRequest(model string) *dto.GeneralOpenAIRequest {
|
|||||||
if strings.HasPrefix(model, "o1") || strings.HasPrefix(model, "o3") {
|
if strings.HasPrefix(model, "o1") || strings.HasPrefix(model, "o3") {
|
||||||
testRequest.MaxCompletionTokens = 10
|
testRequest.MaxCompletionTokens = 10
|
||||||
} else if strings.Contains(model, "thinking") {
|
} else if strings.Contains(model, "thinking") {
|
||||||
testRequest.MaxTokens = 50
|
if !strings.Contains(model, "claude") {
|
||||||
|
testRequest.MaxTokens = 50
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
testRequest.MaxTokens = 10
|
testRequest.MaxTokens = 10
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user