feat(dashboard): include custom (BYOK) provider models in combo/alias picker - #1
Open
uberbyte1805 wants to merge 1 commit into
Open
Conversation
… picker
Previously, the model picker in the Combos & Alias page only fetched
built-in providers via /providers/:id. Custom (BYOK) providers added
through the Providers page (OpenAI/Anthropic compatible endpoints) were
not included in the catalog, so their models could not be selected when
building combos or aliases.
Changes:
- model-picker.tsx: useModelCatalog now also fetches /custom-providers
and merges their models into the flat catalog (9router-style parallel
fetch). Model display names use split('/').slice(1).join('/') so that
models with nested prefixes (e.g. gnrt/cb/claude-opus-4.6) show their
full sub-path instead of just the first segment.
- providers/page.tsx: add a copy-to-clipboard button next to the base
URL on each custom provider card.
Owner
|
Already fixed in v1.0.5-alpha, thank you |
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.
Problem
Custom (BYOK) providers — added via Providers → Add OpenAI/Anthropic Compatible — were missing from the model picker in the Combos & Alias page. Their models could not be selected when building combos or aliases, even though the providers were configured and working.
Additionally, model names with nested prefixes (e.g.
gnrt/cb/claude-opus-4.6) were truncated to just the first segment (cb) in the picker UI.Changes
dashboard/src/components/model-picker.tsxuseModelCatalognow also fetches/custom-providersand merges their models into the flat catalog. This uses the same pattern as 9router'sModelSelectModal, which fetches custom models in parallel with built-in providers.entry.qualified.split("/")[1]→entry.qualified.split("/").slice(1).join("/")so that models with nested path segments (e.g.provider/subprefix/model) display their full sub-path instead of just the first segment after the provider prefix.dashboard/src/features/providers/page.tsxTesting
cb/claude-opus-4.7-1minstead ofcb)test-byokcombo →gnrt/cb/claude-opus-4.7-1m→ 200 OK)Reference
Model picker approach inspired by 9router's
ModelSelectModal, which fetches/api/models/customin parallel and merges with built-in provider models.