Skip to content

[BUG] Deepseek-r1 request failed in OpenAI Compatible mode. #10368

@supuwoerc

Description

@supuwoerc

Problem (one or two sentences)

#10304

I apologize for the five-day delay in submitting this issue. Last week, after updating my ROO code in VS Code, I found that my ROO code could not request Deepseek-R1, with a 400 status code. I tried not using OpenAI Compatible mode, and the request was successful. However, since I'm using a model service built by my company, I still need to use OpenAI Compatible daily.

Thanks to the ROO code team for their efforts.

This is my request after upgrading to version 3.38.0 today, and I'm still getting the same 400 error.

Date/time: 2025-12-29T01:31:54.354Z
Extension version: 3.38.0
Provider: openai
Model: deepseek-r1

400
OpenAI completion error: 400 status code (no body)

Context (who is affected and when)

In the simplest conversation scenario, I tested sending "hi," and the request returned a 400 error.

Reproduction steps

  1. I configured the server endpoint set up by my company.

  2. I used the correct API key.

  3. The request returned a 400 error.

  4. I tried using curl to verify if it was a service error, but it wasn't; the service meets the OpenAI Compatible requirements.

  5. On my other machine, without the upgraded plugin, requests were successful. The root code configuration files on both computers are identical.

Expected result

Normal conversation and task execution

Actual result

OpenAI completion error: 400 status code (no body)

Variations tried (optional)

No response

App Version

3.38.0

API Provider (optional)

OpenAI Compatible

Model Used (optional)

deepseek-r1

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Date/time: 2025-12-29T01:33:10.308Z
Extension version: 3.38.0
Provider: openai
Model: deepseek-r1

400
OpenAI completion error: 400 status code (no body)

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

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions