fix(api): use configured prefix for alias-backed model id in /v1/models (#9034)

Closes #9034
Refs: base-red #9737
fix/9034-api-custom-openai-compatible
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-08-08 11:26:34 -03:00
committed by GitHub
parent 29439c9b11
commit 4095cc0532
3 changed files with 122 additions and 1 deletions

View File

@@ -1376,7 +1376,7 @@ async function buildUnifiedModelsResponseCore(
continue;
}
// #8958: honor the compatible-provider node prefix (as the synced/custom
// #8958/#9034: honor the compatible-provider node prefix (as the synced/custom
// loops do) so an alias-backed entry publishes `prefix/model` instead of the
// raw provider-node UUID. Without the providerIdToPrefix lookup, `alias` fell
// through to `providerKey` (the UUID) and the dedupe below — which only checks