Skip to content

Fix missing model picker multipliers#313093

Merged
pwang347 merged 1 commit intomainfrom
pawang/fixMissingRates
Apr 28, 2026
Merged

Fix missing model picker multipliers#313093
pwang347 merged 1 commit intomainfrom
pawang/fixMissingRates

Conversation

@pwang347
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 28, 2026 20:29
@pwang347 pwang347 marked this pull request as ready for review April 28, 2026 20:30
@pwang347 pwang347 enabled auto-merge (squash) April 28, 2026 20:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the chat model picker’s item descriptions to include the model’s pricing/multiplier text (when provided via ILanguageModelChatMetadata.pricing), ensuring the dropdown consistently surfaces cost/multiplier information.

Changes:

  • Include metadata.pricing in the model picker action description, combined with metadata.detail when both are present.
  • Add unit tests covering pricing-only and detail+pricing description formatting.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Builds model action descriptions from detail and pricing (plus existing config description) using a consistent separator.
src/vs/workbench/contrib/chat/test/browser/widget/input/chatModelPicker.test.ts Adds coverage to verify model picker descriptions include pricing and format detail+pricing correctly.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@pwang347 pwang347 merged commit 4597c2d into main Apr 28, 2026
44 of 45 checks passed
@pwang347 pwang347 deleted the pawang/fixMissingRates branch April 28, 2026 21:11
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 28, 2026
dpearson2699 pushed a commit to dpearson2699/vscode that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants