mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
big-pickle's OpenCode/Zen upstream runs DeepSeek thinking mode, but the model id reveals no DeepSeek signal, so requiresReasoningReplay (called with allowLegacyFallback:false) never triggered. Follow-up/tool-use turns failed with [400] 'The reasoning_content in the thinking mode must be passed back to the API'. Note: requiresReasoningReplay does not consume supportsReasoning, so the registry flag alone would not have fixed it. Add RegistryModel.interleavedField (mirrors models.dev interleaved_field), declare interleavedField:'reasoning_content' (+ supportsReasoning:true) on big-pickle in both opencode and opencode-zen, and surface the registry value in getResolvedModelCapabilities so requiresReasoningReplay returns true. Closes #2900