fix: correct gpt-5.5 completion ratio

This commit is contained in:
yesone
2026-04-24 09:00:21 +08:00
parent 65b1654732
commit df6d862895
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -515,6 +515,9 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
}
// gpt-5 匹配
if strings.HasPrefix(name, "gpt-5") {
if strings.HasPrefix(name, "gpt-5.5") {
return 6, true
}
if strings.HasPrefix(name, "gpt-5.4") {
if strings.HasPrefix(name, "gpt-5.4-nano") {
return 6.25, true