Merge pull request #1525 from HynoR/chore/gpt5

feat: sync gpt-5 model ratio and support new reasoning effort
This commit is contained in:
Calcium-Ion
2025-08-08 10:24:13 +08:00
committed by GitHub
2 changed files with 31 additions and 19 deletions

View File

@@ -450,6 +450,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