Roo-Code: Claude 3.5 Sonnet not working through VS Code LM API

Which API Provider are you using?

VS Code LM API

Which Model are you using?

Claude 3.5 Sonnet

What happened?

  • I have a valid Github Copilot Pro account
  • I can successfully use 01-a through VS Code LM API without problems

If I try to use copilot - claude-3.5-sonnet through VS Code LM API it always gives this error:

Request Failed: 400 {"error":{"message":"The requested model is not supported.","param":"model","code":"model_not_supported","type":"invalid_request_error"}}

Steps to reproduce

  1. Make sure you have a valid Copilot Pro account activated.
  2. Select VS Code LM API as the provider
  3. Select copilot - claude-3.5-sonnet as the model
  4. Type any prompt with this setup.

Relevant API REQUEST output


Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

Answer from Discord (I confirmed this works):

You gotta send one message using Sonnet 3.5 in Github Copilot chat, then click enable. After that it works

Thank you, @ independentwoman (in Discord)

I’m confirming it works with VS Code but haven’t had any luck with cursor IDE.

Same for me also did all steps but same error code…

I did not have this problem maybe because even before using it with Roo, I enabled the feature that is disabled by default in Github’s Copilot setting page: Enable Sonnet feature.

i sent a chat in copilot and then sent one in roo cline but it failed with fd.LanguageModelTextPart is not a constructor

Visit the Visual Studio Code’s website and manually update it to the latest version. Then, send a message to Sonnet 3.5 in the Copilot chat.