Skip to content

reasoning_content not sent when using @ai-sdk/openai-compatible with deepseek-reasoner #6040

@aaudin90

Description

@aaudin90

Description

The reasoning_content is displayed in UI (received correctly), but not sent back to API in subsequent requests.

Config

{
  "provider": {
    "my-proxy": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://localhost:8001/v1"
      },
      "models": {
        "deepseek-reasoner": {
          "id": "deepseek-reasoner",
          "name": "DeepSeek Reasoner"
        }
      }
    }
  }
}

Related

OpenCode version

1.0.191

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

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