mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 19:04:15 +08:00
_openai_kwargs 对 DeepSeek V4 官方域名注入的 thinking 禁用参数 (extra_body) 属外部 API 契约, 模型/接口版本差异可能报 400。照 temperature / reasoning_effort 既有模式补第三条定向回退: 400 且 错误信息指向 thinking 时移除 extra_body 重建请求 (回退默认思考 模式; 若正文因此被推理挤占, 由 _iter_openai_text 显式报错指引)。 与 thinking 无关的 400 不触发回退, 直接抛出。