feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash - #1023
Open
zhou-zhichao wants to merge 1 commit into
Open
feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash#1023zhou-zhichao wants to merge 1 commit into
zhou-zhichao wants to merge 1 commit into
Conversation
Dictation polish uses OpenAI-compatible chat/completions. For OpenCode Go, change the Base URL to /zen/go/v1.
zhou-zhichao
force-pushed
the
feat/opencode-llm-provider
branch
from
September 2, 2026 01:20
e4a14cc to
4cfacf1
Compare
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.
Goal
Add OpenCode Zen as a dictation polish LLM provider. Default model is
deepseek-v4-flashover the OpenAI-compatible/zen/v1/chat/completionsendpoint.OpenCode already exists as a CLI backend for Less Computer (macOS coding agent), but it is missing from Settings → AI providers for polish. Those are different APIs.
Usage
deepseek-v4-flashFor an OpenCode Go subscription, change the same card's Base URL to
https://opencode.ai/zen/go/v1and use the Go console key.The thinking toggle uses DeepSeek's
thinking.type(off by default, so polish stays fast). A custom endpoint whose host containsopencode.aigets the same fallback.Verification
node --import tsx src/pages/settings/ProvidersSection.test.ts— passedcargo test openai_chat_body_adds_deepseek_thinking_toggle_for_opencode— passedcargo test openai_chat_body_falls_back_to_base_url_for_custom_opencode_endpoint— passedScope
Does not change Less Computer / OpenCode CLI, and does not change ASR.