mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
Update model-ratio.go
修复gpt-4-1106-preview和gpt-4-0125-preview的输出倍率错误
This commit is contained in:
parent
4ef2422b97
commit
bf94893f6a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user