mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 02:25:00 +00:00
fix: add support for gpt-5.4 model in model_ratio.go
This commit is contained in:
@@ -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匹配
|
||||||
|
|||||||
Reference in New Issue
Block a user