mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-20 14:12:59 +03:00
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:
committed by
GitHub
parent
29439c9b11
commit
4095cc0532
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user