Skip to content

[Bug]400 {"type":"error","error":{"type":"api_error","message":"upstream 400: {"error":{"message":"The content[].thinking in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"}} #70

Description

@ZirrorDmage

CSSwitch 版本

0.8.2

macOS 版本 + 芯片

macOS 26.5.2 M5

用的是哪个 provider

DeepSeek

复现步骤

任务运行至一半,提示:Agent Failed
400 {"type":"error","error":{"type":"api_error","message":"upstream 400: {"error":{"message":"The content[].thinking in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"}}
随后任务中断,无法resume

期望结果 / 实际结果(含完整报错文字)

任务运行至一半,提示:Agent Failed
400 {"type":"error","error":{"type":"api_error","message":"upstream 400: {"error":{"message":"The content[].thinking in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"}}

日志(可选,强烈建议)

proxy日志为空

sandbox.log
[oauth] 虚拟登录已就绪(Rust,零 node;action=Created;isolated=true)
创建沙箱专属钥匙串(隔离,空密码,不自动锁)…
隔离运行状态已由 CSSwitch 准备(路径已隐藏)

启动隔离沙箱 Science(虚拟登录)
  HOME     = [CSSwitch isolated]
  data-dir = [CSSwitch isolated Science data]
  端口     = 8990   (真实实例 8765 不受影响)
  预览端口 = 8991   (显式固定,供本机 Science 预览使用)
  二进制   = backend-selected runtime
  系统 SSH = 未授权
  推理指向 = http://127.0.0.1:18991/****
  账号     = virtual@localhost.invalid (本地假账号,不用真实凭证)
  外联防卡 = Anthropic HTTPS fast-fail(经 http://127.0.0.1:18991,no_proxy=127.0.0.1,localhost,::1)


已后台启动。验证:
  健康:   curl -s http://127.0.0.1:8990/health || true
  状态:   请使用 CSSwitch 状态灯确认
停止:     请使用 CSSwitch「停止全部」

确认

  • 我已确认贴出的内容里不含 API key、令牌等任何密钥

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions