Skip to content

[BUG] API Provider "VS Code LM API" is getting a "Request Failed: 400" for all Language ModelΒ #8991

@miniCristend

Description

@miniCristend

Problem (one or two sentences)

I tried changing the model in the Language Model list, but they all return the following response: Request Failed: 400 {"error":{"message":"Model is not supported for this request.","code":"model_not_supported","param":"model","type":"invalid_request_error"}}

I also saw the following troubleshooting instruction, but no "Accept" window appeared: Note: Models accessed via the VS Code Language Model API may be wrapped or fine-tuned by the provider, so behavior can differ from using the same model directly from a typical provider or router. To use a model from the Language Model dropdown, first switch to that model and then click Accept in the Copilot Chat prompt; otherwise you may see an error such as 400 "The requested model is not supported".

Context (who is affected and when)

All models return 'Request Failed: 400' when prompted with any content.

Reproduction steps

  1. Settings -> API Provider -> VS Code LM API -> Language Model -> any -> Save -> Done
  2. New Task -> any mode -> any prompt -> Request Failed: 400

Expected result

The task starts and shows progress

Actual result

API Request Failed Request Failed: 400 {"error":{"message":"Model is not supported for this request.","code":"model_not_supported","param":"model","type":"invalid_request_error"}}

Variations tried (optional)

No response

App Version

Version: 3.29.5 (251afb3)

API Provider (optional)

VS Code Language Model API

Model Used (optional)

Any

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions