File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ import { toModelCostInfo, type ModelCostInformation } from './pricing/costs';
77 * NOTE: Non-public API surface.
88 *
99 * The fields below (`configurationSchema` on chat info, cost metadata,
10- * `modelConfiguration` on response options, plus `isUserSelectable` / `statusIcon`)
10+ * `modelConfiguration` on response options, plus `isBYOK` / `isUserSelectable` /
11+ * `statusIcon`)
1112 * are not part of the stable `vscode.LanguageModelChat*` typings yet. They are
1213 * the same shape currently consumed by GitHub Copilot Chat to render model picker
1314 * metadata and per-model configuration controls.
@@ -25,6 +26,7 @@ type ThinkingEffortConfigurationSchema = ReturnType<typeof buildThinkingEffortSc
2526export type ModelPickerChatInformation = vscode . LanguageModelChatInformation &
2627 ModelCostInformation & {
2728 readonly isUserSelectable : boolean ;
29+ readonly isBYOK : true ;
2830 readonly statusIcon ?: vscode . ThemeIcon ;
2931 readonly configurationSchema ?: ThinkingEffortConfigurationSchema ;
3032 } ;
@@ -46,6 +48,7 @@ export function toChatInfo(
4648 statusIcon : hasApiKey ? undefined : new vscode . ThemeIcon ( 'warning' ) ,
4749 maxInputTokens : m . maxInputTokens ,
4850 maxOutputTokens : m . maxOutputTokens ,
51+ isBYOK : true ,
4952 isUserSelectable : true ,
5053 capabilities : {
5154 toolCalling : m . capabilities . toolCalling ,
You can’t perform that action at this time.
0 commit comments