mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-02-19 04:14:24 +08:00
feat: add support gpt-4.5-preview
This commit is contained in:
@@ -750,7 +750,14 @@ func GetCompletionRatio(name string, channelType int) float64 {
|
||||
}
|
||||
return 4.0 / 3.0
|
||||
}
|
||||
// including gpt-4, gpt-4.5
|
||||
if strings.HasPrefix(name, "gpt-4") {
|
||||
if strings.HasPrefix(name, "gpt-4.5") {
|
||||
if strings.HasSuffix(name, "preview") {
|
||||
return 120
|
||||
}
|
||||
return 120
|
||||
}
|
||||
if strings.HasPrefix(name, "gpt-4o") {
|
||||
if name == "gpt-4o-2024-05-13" {
|
||||
return 3
|
||||
|
||||
Reference in New Issue
Block a user