diff --git a/common/model-ratio.go b/common/model-ratio.go index 3bdd5f7..284fb80 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -37,6 +37,7 @@ var defaultModelRatio = map[string]float64{ "gpt-4-turbo-preview": 5, // $0.01 / 1K tokens "gpt-4-vision-preview": 5, // $0.01 / 1K tokens "gpt-4-1106-vision-preview": 5, // $0.01 / 1K tokens + "chatgpt-4o-latest": 2.5, // $0.01 / 1K tokens "gpt-4o": 2.5, // $0.01 / 1K tokens "gpt-4o-2024-05-13": 2.5, // $0.01 / 1K tokens "gpt-4o-2024-08-06": 1.25, // $0.01 / 1K tokens @@ -334,6 +335,9 @@ func GetCompletionRatio(name string) float64 { } return 2 } + if name == "chatgpt-4o-latest" { + return 3 + } if strings.Contains(name, "claude-instant-1") { return 3 } else if strings.Contains(name, "claude-2") {