Repository navigation
fix: clarify model sub-providers in pickers #7562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
tris203
wants to merge
8
commits into
pingdotgg:main
from
tris203:t3code/clarify-model-provider-dropdown
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6e5d0e4
fix: clarify model sub-providers in pickers
tris203 82e8d5b
fix: normalize qualified model labels
tris203 8e54e9e
fix(web): constrain model labels in settings
tris203 e826828
fix(web): wrap settings model controls
tris203 06930ad
fix(mobile): constrain wrapping model rows
tris203 d37fbe9
fix(web): reuse settings model control styles
tris203 8558e3e
fix(mobile): show qualified model labels consistently
tris203 1e11b90
fix(web): override responsive settings model picker width
tris203 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import { describe, expect, it } from "vite-plus/test"; | ||
| import { getModelSourceLabel, getTriggerDisplayModelLabel } from "./providerIconUtils"; | ||
|
|
||
| describe("model provider display labels", () => { | ||
| it("qualifies a multi-provider model in the picker trigger", () => { | ||
| expect( | ||
| getTriggerDisplayModelLabel({ | ||
| slug: "openai/gpt-5.4", | ||
| name: "OpenAI: GPT-5.4", | ||
| shortName: "GPT-5.4", | ||
| subProvider: "OpenAI", | ||
| }), | ||
| ).toBe("GPT-5.4 · OpenAI"); | ||
| }); | ||
|
|
||
| it("describes the model source in terms of its runtime", () => { | ||
| expect( | ||
| getModelSourceLabel( | ||
| { | ||
| slug: "openai/gpt-5.4", | ||
| name: "GPT-5.4", | ||
| subProvider: "OpenAI", | ||
| }, | ||
| "OpenCode", | ||
| ), | ||
| ).toBe("OpenCode · OpenAI"); | ||
| }); | ||
|
|
||
| it("leaves models without a sub-provider unchanged", () => { | ||
| const model = { slug: "gpt-5.4", name: "GPT-5.4" }; | ||
|
|
||
| expect(getTriggerDisplayModelLabel(model)).toBe("GPT-5.4"); | ||
| expect(getModelSourceLabel(model, "Codex")).toBe("Codex"); | ||
| }); | ||
| }); |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.