fix: remove claude-3.7-sonnet from VS Code LM blacklist #6293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes #6292 by removing
claude-3.7-sonnetfrom the VS Code Language Model API static blacklist, allowing it to appear in the model dropdown when available.Problem
The user reported that "copilot - claude-3.7-sonnet" was not showing up in the VS Code Language Model API provider dropdown list, even though it should be available.
Solution
The issue was caused by
claude-3.7-sonnetbeing included in theVSCODE_LM_STATIC_BLACKLISTarray insrc/api/providers/vscode-lm.ts. This blacklist filters out specific models from the list returned by the VS Code Language Model API.By removing
claude-3.7-sonnetfrom this blacklist (while keepingclaude-3.7-sonnet-thought), the model will now appear in the dropdown when it's available through the VS Code LM API.Changes
"claude-3.7-sonnet"from theVSCODE_LM_STATIC_BLACKLISTarray"claude-3.7-sonnet-thought"in the blacklist as it appears to be a different variant that should remain filteredTesting
Notes
The VS Code Language Model API dynamically provides available models, so we don't need to add
claude-3.7-sonnetto any static model lists - we just need to stop filtering it out.Important
Remove
claude-3.7-sonnetfrom VS Code LM API blacklist to allow its availability in the model dropdown."claude-3.7-sonnet"fromVSCODE_LM_STATIC_BLACKLISTinvscode-lm.ts, allowing it to appear in the VS Code LM API model dropdown."claude-3.7-sonnet-thought"remains in the blacklist.This description was created by
for d089c04. You can customize this summary. It will automatically update as commits are pushed.