Conversation
Custom OpenAI/Anthropic-compatible providers now show actual models from their upstream /models endpoint in the combo selector, instead of relying solely on aliases which may not exist. - Add fetchedModels state to store dynamically fetched models - Fetch /api/providers/[id]/models when modal opens for custom providers - Merge fetched models with alias-based models, deduping by ID - Show auto badge for fetched models to distinguish from aliases - Keep placeholder fallback when no models are found Fixes decolua#1988, decolua#2013, decolua#1993, decolua#1995
Contributor
Author
|
can you please merge that PR feature in the next release |
ozkancan-apk
added a commit
to ozkancan-apk/9routerFullFree
that referenced
this pull request
Jun 24, 2026
…it), decolua#2020 (cascade delete + token limits), decolua#2018 (dynamic model fetch) PR decolua#2046: SSE non-JSON satir + duplicate [DONE] fix. Stream kararlilik. PR decolua#2007: 5 guvenlik yamasi (API key leak, proxy URL validation, XSS, MITM race, lock file). PR decolua#2020: Provider silinince model alias cascade delete + custom model token limit. PR decolua#2018: Custom provider'dan model listesi dinamik cekme. + onceki: betterSqliteAdapter transaction fix (createProviderConnection undefined hatasi).
diegosouzapw
pushed a commit
to diegosouzapw/OmniRoute
that referenced
this pull request
Jun 24, 2026
The combo model-select modal only listed alias, fallback, and user-added custom models for connected openai-/anthropic-compatible providers. Models that exist upstream but were never aliased never appeared, so users could not pick them when building a combo. Add a `fetchedModels` state + an on-open effect that loads each connected custom provider's catalog from its `/api/providers/[id]/models` route (keyed by connection id) in parallel, merges the results into the existing alias/fallback/custom list deduped by id, and tags discovered entries with a new `auto` model-catalog source so they render an "Auto" badge. Co-authored-by: Hamsa_M <116961508+hamsa0x7@users.noreply.github.com> Inspired-by: decolua/9router#2018
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.

Summary
Fix custom OpenAI/Anthropic-compatible providers not showing models in combo selectors. Instead of relying solely on aliases (which may not exist), the combo selector now fetches actual models from the provider's upstream /models endpoint.
Problem
Custom providers created via the UI were not showing their models in combo selectors because:
modelAliases)/api/models/customwere not visible for compatible providersmodel-identry was shownChanges
/api/providers/[id]/modelsfor each custom provider connectionIssues Fixed
Test Plan
How it works
ModelSelectModalopens, it identifies all custom (OpenAI/Anthropic-compatible) providers with active connections/api/providers/[connectionId]/modelsfor each one in parallel