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

This commit is contained in:
CaIon committed 2025-12-13 17:24:23 +08:00
1 parent 29565c837f
commit be2a863b9b
6 files changed
+159 -70

No files matched your search

+1 -1
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") {