feat: sync gpt-5 model ratio and support new reasoning effort

This commit is contained in:
HynoR committed 2025-08-08 09:11:28 +08:00
1 parent 85032b3eb8
commit 660b129b75
2 files changed
+31 -19

No files matched your search

+4
View File
@@ -449,6 +449,10 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
}
return 4, true
}
// gpt-5 匹配
if strings.HasPrefix(name, "gpt-5") {
return 8, true
}
// gpt-4.5-preview匹配
if strings.HasPrefix(name, "gpt-4.5-preview") {
return 2, true