Skip to content

[Feature]: API returned status 400: {"error":{"message":"The reasoning_content in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} #3301

@SimZhou

Description

@SimZhou

Current Behavior

Image

Error:

term_get_scrollback
reading terminal output from 9733de09 (lines 0-50)
failed to get terminal scrollback: no route for "feblock:9733de09-89a8-48b3-9427-a9217749c2f3"

and

API returned status 400: {"error":{"message":"The `reasoning_content` in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

Expected Behavior

to chat correctly

Steps To Reproduce

my wavai.json:

{
  "deepseek-v4-pro": {
    "display:name": "Deepseek-V4-Pro",
    "display:order": 1,
    "display:icon": "server",
    "ai:apitype": "openai-chat",
    "ai:model": "deepseek-v4-pro",
    "ai:endpoint": "https://api.deepseek.com/chat/completions",
    "ai:apitokensecretname": "DEEPSEEK_API_KEY_astro",
    "ai:capabilities": [
      "tools",
      "images",
      "pdfs"
    ]
  },
  "deepseek-v4-flash": {
    "display:name": "Deepseek-V4-Flash",
    "display:order": 1,
    "display:icon": "server",
    "ai:apitype": "openai-chat",
    "ai:model": "deepseek-v4-flash",
    "ai:endpoint": "https://api.deepseek.com/chat/completions",
    "ai:apitokensecretname": "DEEPSEEK_API_KEY_astro",
    "ai:capabilities": [
      "tools",
      "images",
      "pdfs"
    ]
  }
}

Wave Version

v0.14.5

Platform

macOS

OS Version/Distribution

No response

Architecture

arm64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions