Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jul 28, 2025

Summary

This PR fixes #6292 by removing claude-3.7-sonnet from 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-sonnet being included in the VSCODE_LM_STATIC_BLACKLIST array in src/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-sonnet from this blacklist (while keeping claude-3.7-sonnet-thought), the model will now appear in the dropdown when it's available through the VS Code LM API.

Changes

  • Removed "claude-3.7-sonnet" from the VSCODE_LM_STATIC_BLACKLIST array
  • Kept "claude-3.7-sonnet-thought" in the blacklist as it appears to be a different variant that should remain filtered

Testing

  • ✅ All existing VS Code LM tests pass
  • ✅ Linting and type checks pass
  • The model should now appear in the dropdown when available through VS Code's Language Model API

Notes

The VS Code Language Model API dynamically provides available models, so we don't need to add claude-3.7-sonnet to any static model lists - we just need to stop filtering it out.


Important

Remove claude-3.7-sonnet from VS Code LM API blacklist to allow its availability in the model dropdown.

  • Behavior:
    • Removed "claude-3.7-sonnet" from VSCODE_LM_STATIC_BLACKLIST in vscode-lm.ts, allowing it to appear in the VS Code LM API model dropdown.
    • "claude-3.7-sonnet-thought" remains in the blacklist.
  • Testing:
    • All existing VS Code LM tests pass.
    • Linting and type checks pass.

This description was created by Ellipsis for d089c04. You can customize this summary. It will automatically update as commits are pushed.

…del 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.
@roomote roomote bot requested review from cte, jr and mrubens as code owners July 28, 2025 12:23
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jul 28, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 28, 2025
@daniel-lxs
Copy link
Member

This model was removed from the API

@daniel-lxs daniel-lxs closed this Jul 30, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jul 30, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Sonnet 3.7 not showing for VS Code LM API

4 participants