fix: add support for gpt-5.4 model in model_ratio.go

This commit is contained in:
CaIon
2026-03-06 11:43:05 +08:00
parent f0e938a513
commit 18aa0de323

View File

@@ -471,6 +471,9 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
} }
// gpt-5 匹配 // gpt-5 匹配
if strings.HasPrefix(name, "gpt-5") { if strings.HasPrefix(name, "gpt-5") {
if strings.HasPrefix(name, "gpt-5.4") {
return 6, true
}
return 8, true return 8, true
} }
// gpt-4.5-preview匹配 // gpt-4.5-preview匹配