continue icon indicating copy to clipboard operation
continue copied to clipboard

Error: using organization model. 400

Open fzhang00 opened this issue 11 months ago • 3 comments

I'm using Azure hosted gpt-5.1 model from my organization.

Continue installation is through extention in VSCode, Windows11.

The config yaml is setup like this:

name: Local Config
version: 1.0.0
schema: v1
models:
  - name: "myorg-Global-gpt-5.1-chat"
    provider: "openai"
    model: "myorg-Global-gpt-5.1-chat"
    apiBase: 'https://server-address.azure.com/openai/v1/'
    apiVersion: "2025-11-13"
    apiKey: 'my_api'

The setup would work sometimes, but in the same session when it is working, the next conversation can produce this error below. Usually if I use the resubmit last message, it usually work, but submitting new message still not working. Please advice how to fix this issue. Thanks.

Error Details

Model: myorg-Global-gpt-5.1-chat Provider: openai Status Code: 400

Error Output

{"message":"Item 'rs_01dffa94d3f99bb000694ab5f2528c8195b97657fa78ccba22' of type 'reasoning' was provided without its required following item.","type":"invalid_request_error","param":"input","code":null}

Additional Context Please add any additional context about the error here

fzhang00 avatar Dec 23 '25 16:12 fzhang00

Related issues about reasoning tokens and 400 errors:

  • #8933 - Same error: 'reasoning' was provided without its required following item
  • #9264 - GPT-5 400 error with reasoning token issue
  • #9155 - GPT-5 400 error with tool call issues
  • #9164 - GPT-5 400 error with organization verification for reasoning summaries
  • #9245 - DeepSeek R1 fails with MCP tools - 400 Missing reasoning_content
  • #8989 - DeepSeek v3.2 as agent throws "400 Missing reasoning_content field"

These issues appear to be related to how Continue handles reasoning tokens/content in the conversation history when using models with reasoning capabilities (GPT-5, DeepSeek R1/v3.2, etc.), especially in multi-turn conversations with tool calling.

continue avatar Dec 23 '25 16:12 continue

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 24 '26 02:03 github-actions[bot]

Fixed by #11785 There may still be cases where this could happen when using one provider like Anthropic and then switching the same conversation to OpenAI. If you run into this, please open a new issue with details.

RomneyDa avatar Mar 25 '26 01:03 RomneyDa