Skip to content

[BUG] opus4.7不支持thinking.type.enabled参数 #437

@sunwu51

Description

@sunwu51

提交前确认

  • 我已经阅读了 README 常见问题
  • 我已经升级到最新版本后复现过这个问题
  • 我已经搜索过现有 issues,确认没有重复问题
  • 我已经隐藏截图和日志中的 API Key、Token、Cookie 等敏感信息

问题描述

MacOS桌面端,使用opus4.7模型,报错thinking.type.enabledis not supported for this model.

模型供应商为公司采购后通过litellm给员工提供的claude-opus-4-7模型,切换到claude-sonnet-4-6后不报错

运行环境

  • 使用方式: 桌面端
  • 操作系统: macOS
  • 系统版本: macOS:
  • 桌面端版本: 0.2.6
  • 安装来源: GitHub Release

Provider / 模型配置

  • API 提供商: 例如 Anthropic 官方 / OpenRouter / MiniMax / Kimi / Ollama:
  • Base URL:
  • 使用的模型:
  • 相关配置截图:

复现步骤

是否稳定复现: 是 / 否 / 不确定

错误信息与日志

thinking.type.enabled is not supported for this model. Use \\\\\\\"thinking.type.adaptive\\\\\\\" and \\\\\\\"output_config.effort\\\\\\\" to control thinking behavior.

截图或录屏

补充信息

Claude Opus 4.7不再支持旧的写法,是个API的breaking change,需要在发送请求的时候识别该模型,不要传类似

"thinking": {
  "type": "enabled",
  "budget_tokens": 10000
}

而是改为新的写法

"thinking": {
        "type": "adaptive",
        "display": "summarized"  
 },
 "output_config": {"effort": "high"}
    

@dosubot

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions