fix: increase StreamScannerMaxBufferMB limit and add handling for gpt-5.4-nano prefix

This commit is contained in:
CaIon
2026-03-22 13:55:03 +08:00
parent 3c516084f8
commit deff59a5be
2 changed files with 4 additions and 1 deletions

View File

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