Skip to content

feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash - #1023

Open
zhou-zhichao wants to merge 1 commit into
Open-Less:betafrom
zhou-zhichao:feat/opencode-llm-provider
Open

feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash#1023
zhou-zhichao wants to merge 1 commit into
Open-Less:betafrom
zhou-zhichao:feat/opencode-llm-provider

Conversation

@zhou-zhichao

@zhou-zhichao zhou-zhichao commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Goal

Add OpenCode Zen as a dictation polish LLM provider. Default model is deepseek-v4-flash over the OpenAI-compatible /zen/v1/chat/completions endpoint.

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

  1. Settings → AI providers → add channel → OpenCode Zen
  2. Paste an OpenCode API key from https://opencode.ai/auth
  3. Keep the model as deepseek-v4-flash

For an OpenCode Go subscription, change the same card's Base URL to https://opencode.ai/zen/go/v1 and 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 contains opencode.ai gets the same fallback.

Verification

  • node --import tsx src/pages/settings/ProvidersSection.test.ts — passed
  • cargo test openai_chat_body_adds_deepseek_thinking_toggle_for_opencode — passed
  • cargo test openai_chat_body_falls_back_to_base_url_for_custom_opencode_endpoint — passed

Scope

Does not change Less Computer / OpenCode CLI, and does not change ASR.

@zhou-zhichao zhou-zhichao changed the title feat(llm): 增加 OpenCode Zen 润色提供商,默认 deepseek-v4-flash feat(llm): add OpenCode Zen polish provider, default deepseek-v4-flash Sep 2, 2026
Dictation polish uses OpenAI-compatible chat/completions. For OpenCode Go, change the Base URL to /zen/go/v1.
@zhou-zhichao
zhou-zhichao force-pushed the feat/opencode-llm-provider branch from e4a14cc to 4cfacf1 Compare September 2, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant