Skip to content

opencode: Support interleaved_reasoning and fix DeepSeek (#55574) (cherry-pick to preview) - #55777

Merged
zed-zippy[bot] merged 1 commit into
v1.1.xfrom
cherry-pick-v1.1.x-a4237425
May 5, 2026
Merged

opencode: Support interleaved_reasoning and fix DeepSeek (#55574) (cherry-pick to preview)#55777
zed-zippy[bot] merged 1 commit into
v1.1.xfrom
cherry-pick-v1.1.x-a4237425

Conversation

@zed-zippy

@zed-zippy zed-zippy Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #55574 to preview


OpenCode API endpoints for DeepSeek were moved from
Anthropic-compatible to
OpenAI-compatible
and
DeepSeek requires interleaved reasoning enabled to work. I ran a
"rename this variable to potato" test and I can confirm DeepSeek V4
Flash and Pro both work now 🎉

Some other OpenCode Go models were marked on
models.dev

as supporting interleaved_reasoning so they too got that enabled. Kimi
K2.5 and Kimi K2.6 continue to fail with
#51743
(#55085 seems to hint at this
being an OpenCode
issue
?),
but all other models seem to work fine both with interleaved_reasoning
and without it 🤷 I assume it's better to have that turned on? Again, the
intersection of OpenAI Chat Completions API, different models, different
inference providers, how they all work together is something I know
nothing about!

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX
    checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • OpenCode Go: use correct DeepSeek endpoints
  • OpenCode: add support for interleaved_reasoning

OpenCode API endpoints for DeepSeek were [moved from
Anthropic-compatible to
OpenAI-compatible](anomalyco/opencode#24500) and
DeepSeek requires interleaved reasoning enabled to work. I ran a
_"rename this variable to potato"_ test and I can confirm DeepSeek V4
Flash and Pro both work now 🎉

Some other OpenCode Go models were marked [on
models.dev](https://github.com/anomalyco/models.dev/tree/dev/providers/opencode-go/models)
as supporting `interleaved_reasoning` so they too got that enabled. Kimi
K2.5 and Kimi K2.6 continue to fail with
#51743
(#55085 seems to hint at this
being [an OpenCode
issue](#51743 (comment))?),
but all other models seem to work fine both with `interleaved_reasoning`
and without it 🤷 I assume it's better to have that turned on? Again, the
intersection of OpenAI Chat Completions API, different models, different
inference providers, how they all work together is something I know
nothing about!

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [X] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

Release Notes:
- OpenCode Go: use correct DeepSeek endpoints
- OpenCode: add support for interleaved_reasoning
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 5, 2026
@zed-community-bot zed-community-bot Bot added the bot Pull requests authored by a bot label May 5, 2026
@zed-zippy
zed-zippy Bot merged commit 14ac2d3 into v1.1.x May 5, 2026
39 checks passed
@zed-zippy
zed-zippy Bot deleted the cherry-pick-v1.1.x-a4237425 branch May 5, 2026 14:58
@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label May 5, 2026
@maxbrunsfeld

Copy link
Copy Markdown
Collaborator

@zed-industries/approved

@zed-zippy zed-zippy Bot removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants