feat(audio): enhance audio request handling with token type detection and streaming support

This commit is contained in:
CaIon
2025-12-13 17:24:23 +08:00
parent b602843ce1
commit e36e2e1b69
6 changed files with 159 additions and 70 deletions

View File

@@ -536,7 +536,7 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
if name == "gpt-4o-2024-05-13" {
return 3, true
}
return 4, true
return 4, false
}
// gpt-5 匹配
if strings.HasPrefix(name, "gpt-5") {