feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash - #1023
Merged
H-Chris233 merged 8 commits intoSep 8, 2026
Merged
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
Collaborator
|
开始审查 |
Collaborator
Auto 和 Toggle 模式只在 Fn 短按松开且未叠加功能层操作时触发听写;长按及亮度、音量等 systemDefined 事件留给 macOS。 保留显式 Hold 模式的按住说话语义,并跳过 Fn 短按释放后的冗余仲裁延迟。 Co-authored-by: Chris233 <h-chris233@outlook.com>
* fix(asr): 百炼 WebSocket 优先走 IPv4,避开本机 IPv6 黑洞 dashscope 的 AAAA 在部分 Windows 双栈网上 TCP 443 会挂死,connect_async 先试 IPv6 会卡满 5 秒超时,听写进不了 Listening。 Co-authored-by: Cursor <cursoragent@cursor.com> * fix(asr): preserve websocket ports and retry handshake addresses --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Chris233 <h-chris233@outlook.com>
Collaborator
|
预想为Opencode Zen在预设中可以手动选择请求该模型的格式,用户可以自行测试哪种格式适合该模型。 |
* fix(updater): default beta builds to beta channel (Open-Less#1034) * fix(updater): persist channel switches atomically
* feat(llm): add channel request formats and compatibility presets * fix(llm): harden channel protocol handling
Collaborator
|
#1042 已合并,现在开始改造该PR |
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
OpenCode is available as a Less Computer CLI backend, but is missing from Settings → AI providers for dictation polish. Add OpenCode Zen as a polish LLM provider with
deepseek-v4-flashover the OpenAI-compatible/zen/v1/chat/completionsendpoint.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). A custom endpoint whose host containsopencode.aigets the same fallback.Implementation
crates/openless-core/src/polish.rs.Verification
Run from
openless-all/app:cargo test --locked -p openless-core— 886 passed, 1 ignored.npm run build— TypeScript and Vite build passed.node scripts/frontend-test-runner.mjs— all 69 test files passed.Regression coverage includes provider registration and defaults, API key requirements at the default endpoint, thinking enabled/disabled for the preset and a custom Go endpoint, and frontend consumption of Core defaults.
Scope
Does not change Less Computer / OpenCode CLI, and does not change ASR.