From d089c049c05725c9b2d6692729e5d2e43d14f4ee Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 28 Jul 2025 12:21:07 +0000 Subject: [PATCH] fix: remove claude-3.7-sonnet from VS Code LM blacklist to show in model dropdown Fixes #6292 - Claude 3.7 Sonnet was being filtered out from the VS Code Language Model API provider list due to being in the static blacklist. This change removes it from the blacklist so it will appear in the dropdown when available through the VS Code LM API. --- src/api/providers/vscode-lm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/providers/vscode-lm.ts b/src/api/providers/vscode-lm.ts index 6474371bee..6056b5f7f2 100644 --- a/src/api/providers/vscode-lm.ts +++ b/src/api/providers/vscode-lm.ts @@ -565,7 +565,7 @@ export class VsCodeLmHandler extends BaseProvider implements SingleCompletionHan } // Static blacklist of VS Code Language Model IDs that should be excluded from the model list e.g. because they will never work -const VSCODE_LM_STATIC_BLACKLIST: string[] = ["claude-3.7-sonnet", "claude-3.7-sonnet-thought"] +const VSCODE_LM_STATIC_BLACKLIST: string[] = ["claude-3.7-sonnet-thought"] export async function getVsCodeLmModels() { try {