fix(openai): normalize gpt-5.4-xhigh compat mapping

This commit is contained in:
YanzheL
2026-03-29 20:52:29 +08:00
parent fdd8499ffc
commit 8c10941142
5 changed files with 248 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ package service
// forwarding. Group-level default mapping only applies when the account itself
// did not match any explicit model_mapping rule.
func resolveOpenAIForwardModel(account *Account, requestedModel, defaultMappedModel string) string {
requestedModel = NormalizeOpenAICompatRequestedModel(requestedModel)
if account == nil {
if defaultMappedModel != "" {
return defaultMappedModel