Repository navigation
Conversation
Message footers name the model by its display name only, so the same model served through two providers (openai and a gateway clone, a direct API key and a proxy) reads identically, and nothing on screen says which provider answered a turn. model_label in tui.json picks the label: 'name' (default) keeps the display name; 'id' shows providerID/modelID, e.g. anthropic/claude-sonnet-4-5, in every assistant message footer and in the prompt's model indicator, where it replaces the model and provider names. Variant and duration stay as they are.
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
3 of 6 tasks
1 task done
This was referenced Oct 8, 2026
Member
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
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.
Note: I'm aware v1 is now the maintenance branch and new features go to v2 only. This PR is here for others who want to use it on v1. I will submit a v2 version once I've migrated my plugin setup to v2.
Issue for this PR
Closes #53638
Type of change
What does this PR do?
Adds
model_labeltotui.json, so you can see which provider answered each turn when the same model is reachable through more than one provider."name"(default): unchanged display names."id":providerID/modelID, e.g.anthropic/claude-opus-4-5, in every assistant message footer, and in the prompt's model indicator, where it replaces the model and provider names.The footer uses the IDs stored on the message, so it names the provider the turn actually ran on, not the current selection. Variant and duration are unchanged.
Model.labelinsrc/util/model.tspicks the label; the footer and the prompt indicator call it.How did you verify your code works?
test/util/model.test.tscovers both labels, including nested model IDs;test/config.test.tsxcovers decoding.bun testandbun typecheckpass inpackages/tui.XDG_*dirs on a throwaway tmux socket, two OpenAI-compatible providers (qa-alpha,qa-beta) serving the same model named "QA Model". One turn on each; footers and the prompt line as captured:Checklist
This PR is AI generated, but under direct supervision and on request of @Nowaker.