Skip to content

Draft: Display configurable context size limits in Language Models table#319062

Draft
eli-w-king wants to merge 1 commit into
mainfrom
eli/context-mm-order
Draft

Draft: Display configurable context size limits in Language Models table#319062
eli-w-king wants to merge 1 commit into
mainfrom
eli/context-mm-order

Conversation

@eli-w-king
Copy link
Copy Markdown
Contributor

This PR reorders the columns in the Language Models table (Capabilities followed by Context Size), updates the header to "Default Context Size", and cleanly formats any configurable context maximum size limits without a colon (matching the default context number styling).

Copilot AI review requested due to automatic review settings May 29, 2026 21:22
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

This PR updates the Language Models management table to surface configurable context-size information and adjust the column ordering/labeling.

Changes:

  • Reorders the table so Capabilities appears before context size.
  • Renames and widens the context-size column to “Default Context Size”.
  • Adds rendering and hover text for configurable maximum context sizes.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.ts Updates context-size rendering, hover content, schema parsing, and table column ordering.
src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css Adjusts styling for the new configurable context-size text.

Copilot's findings

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

Comment on lines +721 to +724
const max = Math.max(...numericValues);
const min = Math.min(...numericValues);
const schemaDefault = typeof contextSizeSchema.default === 'number' ? contextSizeSchema.default : undefined;
return { default: schemaDefault ?? min, max };
const maxTotalTokens = maxConfigurableInput + outputTokens;
const maxDiv = DOM.append(templateData.tokenLimitsElement, $('.token-limit-item.token-limit-max'));
const maxText = DOM.append(maxDiv, $('span'));
maxText.textContent = localize('models.configurableContextSize', "Configurable to {0}", formatTokenCount(maxTotalTokens));
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