feat: support gpt-4-turbo
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled

This commit is contained in:
1808837298@qq.com 2024-04-10 20:10:54 +08:00
parent 366adc012e
commit c3592269ec

View File

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