mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 15:12:23 +03:00
fix(no-think): normalize provider prefix to canonical in no-think variants (#4531)
Adds pure normalizeProviderPrefix helper + opt-in aliasToCanonical map so no-think variant ids use canonical provider prefixes in canonical catalog mode. Tested. Rebuilt onto release/v3.8.33. Integrated into release/v3.8.33.
This commit is contained in:
@@ -1397,7 +1397,10 @@ export async function getUnifiedModelsResponse(
|
||||
|
||||
// Advertise no-thinking gateway variants (Fase 8.1). Derived from the already
|
||||
// key-filtered list, so a variant only appears when its real model is permitted.
|
||||
finalModels = appendNoThinkingVariants(finalModels);
|
||||
finalModels = appendNoThinkingVariants(
|
||||
finalModels,
|
||||
prefixMode === "canonical" ? aliasToProviderId : undefined
|
||||
);
|
||||
|
||||
// #4424 follow-up — drop exact-duplicate ids that slip through the per-source push
|
||||
// guards (e.g. `codex/gpt-5.5`, `veo-free/seedance` listed twice). Keyed by listing
|
||||
|
||||
Reference in New Issue
Block a user