Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/config/codexProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,38 @@ requires_openai_auth = true`,
icon: "deepseek",
iconColor: "#1E88E5",
},
{
name: "OpenCode Go",
websiteUrl: "https://opencode.ai",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"opencode_go",
"https://opencode.ai/zen/go/v1",
"deepseek-v4-flash",
),
category: "third_party",
apiFormat: "openai_chat",
modelCatalog: modelCatalog([
{
model: "deepseek-v4-flash",
displayName: "DeepSeek V4 Flash",
contextWindow: 1000000,
},
{
model: "deepseek-v4-pro",
displayName: "DeepSeek V4 Pro",
contextWindow: 1000000,
},
]),
codexChatReasoning: {
supportsThinking: true,
thinkingParam: "thinking",
outputFormat: "reasoning_content",
},
Comment on lines +305 to +309
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve DeepSeek effort settings for OpenCode Go

For this preset, the explicit codexChatReasoning object short-circuits backend inference in resolve_codex_chat_reasoning_config, and normalizeCodexChatReasoningForSave treats the omitted supportsEffort as false/effortParam: "none". That means OpenCode Go's DeepSeek V4 models will ignore Codex's configured model_reasoning_effort = "high", even though the adjacent DeepSeek preset for the same model family enables supportsEffort: true with effortValueMode: "deepseek"; users selecting OpenCode Go will silently lose effort control unless these fields are included here.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

@cxyfer cxyfer Jun 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an intentional design, as OpenCode Go will include models from other providers, and adding supportsEffort might be incompatible with other providers.

endpointCandidates: ["https://opencode.ai/zen/go/v1"],
icon: "opencode",
iconColor: "#211E1E",
},
{
name: "Zhipu GLM",
websiteUrl: "https://open.bigmodel.cn",
Expand Down