Merge pull request #1498 from aiexz/main

do not normalize model for openai API token based accounts
This commit is contained in:
Wesley Liddick
2026-04-07 20:37:10 +08:00
committed by GitHub
6 changed files with 51 additions and 6 deletions
@@ -46,7 +46,7 @@ func (s *OpenAIGatewayService) ForwardAsChatCompletions(
// 2. Resolve model mapping early so compat prompt_cache_key injection can
// derive a stable seed from the final upstream model family.
billingModel := resolveOpenAIForwardModel(account, originalModel, defaultMappedModel)
upstreamModel := normalizeCodexModel(billingModel)
upstreamModel := normalizeOpenAIModelForUpstream(account, billingModel)
promptCacheKey = strings.TrimSpace(promptCacheKey)
compatPromptCacheInjected := false