fix(v1/models): include alias-backed models in listing - #730
Merged
Merged
Conversation
Ensure /v1/models includes provider models added through alias mappings so compatible provider entries like huoshan/kimi-k2.6 are discoverable by clients. Made-with: Cursor
brilliant5163
pushed a commit
to brilliant5163/9router
that referenced
this pull request
May 8, 2026
Ensure /v1/models includes provider models added through alias mappings so compatible provider entries like huoshan/kimi-k2.6 are discoverable by clients. Made-with: Cursor Co-authored-by: Ken Lin <kenlin1988@foxmail.com>
caothu159
pushed a commit
to diepxuan/9router
that referenced
this pull request
May 14, 2026
Ensure /v1/models includes provider models added through alias mappings so compatible provider entries like huoshan/kimi-k2.6 are discoverable by clients. Made-with: Cursor Co-authored-by: Ken Lin <kenlin1988@foxmail.com>
5 tasks
diegosouzapw
pushed a commit
to diegosouzapw/OmniRoute
that referenced
this pull request
Jun 24, 2026
Surface models registered ONLY through the `modelAliases` key_value namespace
(value = "<providerKey>/<modelId>", e.g. setModelAlias("kimi-k2.6",
"custom/kimi-k2.6")) so compatible-provider entries that resolve at request
time but were silently dropped from /v1/models are now discoverable by OpenAI
clients. Same gating as the existing static/custom path: provider must be
active (or noAuth+unblocked), model must not be hidden, alias/canonical id
must not already exist. Pair-extract is a pure leaf (aliasBackedModels.ts)
unit-tested in v1-models-aliases-included.test.ts.
Co-authored-by: Ken Lin <kenlin1988@foxmail.com>
Inspired-by: decolua/9router#730
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ensure /v1/models includes provider models added through alias mappings so compatible provider entries like custom/kimi-k2.6 are discoverable by clients.