Merge pull request #197 from xqx333/main

Update model-ratio.go
This commit is contained in:
Calcium-Ion 2024-04-11 14:15:33 +08:00 committed by GitHub
commit 300947f400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,7 +202,7 @@ func GetCompletionRatio(name string) float64 {
return 4.0 / 3.0 return 4.0 / 3.0
} }
if strings.HasPrefix(name, "gpt-4") { if strings.HasPrefix(name, "gpt-4") {
if strings.HasSuffix(name, "gpt-4-turbo") { if strings.HasPrefix(name, "gpt-4-turbo")|| strings.HasSuffix(name, "preview") {
return 3 return 3
} }
return 2 return 2