Skip to content

Commit 50ff6ba

Browse files
authored
fix(provider): mark DeepSeek models as BYOK (#162)
1 parent 1d7b668 commit 50ff6ba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/provider/models.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2526
export 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,

0 commit comments

Comments
 (0)