Skip to content

About deepseek reasoning error #904

Description

@SStParasite

Summary

when agent try to read my files it would return error 400

Steps to Reproduce

1.set the deepseek env
2.start to chat and ask it to do some agent work like reading files

Expected Behavior

read my files and report it to me

but it return after read one file
API Error: 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"}}

Environment

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-"
$env:OPENAI_BASE_URL="https://api.deepseek.com/v1"
$env:OPENAI_MODEL="deepseek-v4-flash"

openclaude

  • OpenClaude version:v0.6.0
  • OS:
  • Terminal:
  • Provider:
  • Model:

Logs / Screenshots

Paste the exact error output or attach screenshots if useful.

Additional Context

Anything else maintainers should know?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions