feat(chat): add provider badge to chat input#2257
Draft
gary149 wants to merge 20 commits into
Draft
Conversation
Adds a green pill next to the MCP badge in the chat input that shows the currently selected inference provider and lets users switch on the spot, reusing the existing providerOverrides settings + bits-ui Select pattern from the model settings page. Hidden for the Omni router and self-hosted deployments to avoid surfacing irrelevant choices.
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
bits-uidropdown — Auto / Fastest / Cheapest, plus the model's specific providers with HF avatars.settings.providerOverrides[modelId]plumbing (storage and themodel:providersuffix on the OpenAI endpoint), so no server changes are needed.model.isRouter) and self-hosted instances; only renders on HuggingChat for models that expose providers.font-semiboldon the MCP badge too so the two pills match in weight.Test plan
/settings/<model>reflects the same choice.routerMetadata.provider.PUBLIC_APP_ASSETS != "huggingchat"): badge does NOT render.dark:bg-gray-700,dark:text-gray-100).