mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 21:53:42 +08:00
[Bugfix] fix GetCompletionRatio for gpt-3.5-turbo-1106
This commit is contained in:
@@ -88,9 +88,6 @@ func GetModelRatio(name string) float64 {
|
||||
}
|
||||
|
||||
func GetCompletionRatio(name string) float64 {
|
||||
if strings.HasPrefix(name, "gpt-3.5") {
|
||||
return 1.333333
|
||||
}
|
||||
if strings.HasPrefix(name, "gpt-4") {
|
||||
return 2
|
||||
}
|
||||
@@ -103,5 +100,8 @@ func GetCompletionRatio(name string) float64 {
|
||||
if strings.HasPrefix(name, "gpt-3.5-turbo-1106") {
|
||||
return 2 // Input: $0.0010 / 1K tokens Output: $0.0020 / 1K tokens
|
||||
}
|
||||
if strings.HasPrefix(name, "gpt-3.5") {
|
||||
return 1.333333
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user