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.
This commit is contained in:
Roo Code 2025-07-28 12:21:07 +00:00
parent 342ee70fb4
commit d089c049c0

View file

@ -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 {