Skip to content

Model hover redesign based on feedback#322003

Draft
pwang347 wants to merge 1 commit into
mainfrom
pawang/modelHoverUpdate2
Draft

Model hover redesign based on feedback#322003
pwang347 wants to merge 1 commit into
mainfrom
pawang/modelHoverUpdate2

Conversation

@pwang347

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 18, 2026 21:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the chat model picker hover UI and underlying model metadata so a new “model category/tier” can be surfaced as a tag (e.g. lightweight/versatile/powerful), alongside the existing pricing category.

Changes:

  • Adds an optional category field to language model pricing/metadata (proposed API + internal metadata) and plumbs it through the ext host and Copilot endpoint plumbing.
  • Redesigns the model hover layout (title tags row + simplified cost table + configurable buttons row).
  • Simplifies proposed API proposal typings by removing the unused version?: number from the exported allApiProposals type.
Show a summary per file
File Description
src/vscode-dts/vscode.proposed.languageModelPricing.d.ts Adds proposed API surface for optional model category.
src/vs/workbench/contrib/chat/common/languageModels.ts Extends internal model metadata to include optional category.
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Updates CSS for redesigned model hover layout and cost table.
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Implements new hover DOM structure and category tag label mapping.
src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.ts Updates hover construction call site after hover API signature change.
src/vs/workbench/api/common/extHostLanguageModels.ts Marshals category through ext host language model metadata.
src/vs/platform/extensions/common/extensionsApiProposals.ts Narrows exported allApiProposals type to { proposal: string }.
extensions/copilot/src/platform/networking/common/networking.ts Adds Copilot-side modelPickerCategory field to endpoint metadata.
extensions/copilot/src/platform/endpoint/node/chatEndpoint.ts Plumbs model_picker_category from model metadata into modelPickerCategory.
extensions/copilot/src/platform/endpoint/common/endpointProvider.ts Extends model API response shape with model_picker_category.
extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts Maps Copilot endpoint modelPickerCategory into VS Code model metadata category.

Copilot's findings

  • Files reviewed: 10/11 changed files
  • Comments generated: 2

Comment on lines 221 to 224
): IActionListItem<IActionWidgetDropdownAction> {
const hover = model && openerService
? getModelHoverContent(model, openerService, isUBB, onConfigure ? (group) => onConfigure(model, group) : undefined)
? getModelHoverContent(model, isUBB, onConfigure ? (group) => onConfigure(model, group) : undefined)
: undefined;
.chat-model-hover-cost-table {
display: flex;
flex-direction: column;
gap: 3px;
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.

2 participants