Files
oh-my-pi/packages
can1357 784a457a88 fix(ai): replay reasoning_content for DeepSeek V4 across compat hosts
DeepSeek V4 (v4-pro / v4-flash and reasoning-capable v3.x variants) reject follow-up
requests with 'The reasoning content in the thinking mode must be passed back to the
API' whenever a prior assistant tool-call turn lacks reasoning_content. The compat
flag that triggers placeholder injection was scoped to Kimi and OpenRouter-routed
reasoning models, so DeepSeek reached through api.deepseek.com, Deepinfra, Kilo,
NVIDIA NIM or Zenmux silently failed.

- Match DeepSeek family by provider, baseUrl, model id, or model name in
  detectOpenAICompat (gated by model.reasoning).
- Recompute hasReasoningField after injecting the placeholder so the existing
  'content === null && hasReasoningField -> ""' DeepSeek normalization actually
  runs on tool-only assistant turns.

Fixes #883
Fixes #810
2026-04-30 04:51:23 +02:00
..
2026-04-30 02:50:53 +02:00
2026-04-30 02:50:53 +02:00