feat(presets): add OpenCode Go subscription preset for Codex and OpenCode

Add OpenCode Go (opencode.ai/zen/go) provider presets across clients:

- Codex: openai_chat conversion with model catalog (GLM/Kimi/DeepSeek/MiMo), no static codexChatReasoning so per-model capability is inferred

- OpenCode: @ai-sdk/openai-compatible against /zen/go/v1

- Claude: add apiKeyUrl (opencode.ai/auth) and align websiteUrl to /go

Auth is a plain pasteable API key (no OAuth). Go splits wire format by model: OpenAI /chat/completions for GLM/Kimi/DeepSeek/MiMo, Anthropic /messages for MiniMax/Qwen; these presets target the chat-format models.
This commit is contained in:
Jason
2026-06-26 20:19:27 +08:00
parent 430ddf92bd
commit dd6a951c34
3 changed files with 65 additions and 1 deletions
+2 -1
View File
@@ -281,7 +281,8 @@ export const providerPresets: ProviderPreset[] = [
},
{
name: "OpenCode Go",
websiteUrl: "https://opencode.ai",
websiteUrl: "https://opencode.ai/go",
apiKeyUrl: "https://opencode.ai/auth",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL: "https://opencode.ai/zen/go",