opencode: Support interleaved_reasoning and fix DeepSeek#55574
Merged
Conversation
Merging DeepSeek with the other OpenAI-compatible models since it has no reason to be by itself anymore
Contributor
Author
|
@benbrandt any chance this can be merged and cherry picked to Preview so it's part of this week's release? Having #54880 in there with broken DeepSeek support will confuse a bunch of users. Apologies for the ping! |
Member
|
/cherry-pick preview |
benbrandt
approved these changes
May 5, 2026
Contributor
Contributor
Author
|
@benbrandt am... #54880 is in next-Preview since it was merged last week, right? |
Merged
5 tasks
zed-zippy Bot
added a commit
that referenced
this pull request
May 5, 2026
…erry-pick to preview) (#55777) Cherry-pick of #55574 to preview ---- 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 Co-authored-by: Vlad Ionescu <Vlaaaaaaad@users.noreply.github.com>
Collaborator
|
@zed-industries/approved |
ebaah46
pushed a commit
to ebaah46/zed
that referenced
this pull request
May 6, 2026
…ies#55574) 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 zed-industries#51743 (zed-industries#55085 seems to hint at this being [an OpenCode issue](zed-industries#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
This was referenced May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_reasoningso 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 withinterleaved_reasoningand 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:
Release Notes: