Skip to content

fix: point opencode-zen and opencode-go setup_url to jcode docs #89

@fuleinist

Description

@fuleinist

Problem

Issue #82 reports that when using jcode on Windows and selecting OpenAI-compatible, the UI shows opencode.ai documentation:

When selecting OpenAI-compatible, the UI shows opencode documentation:
https://opencode.ai/docs/providers#custom-providers
This is confusing because I am using jcode, not opencode.

The opencode-zen and opencode-go profiles (which are also OpenAI-compatible profiles in jcode's TUI) had setup_url pointing to opencode.ai docs. This is misleading for jcode users.

Fix (PR-ready patch)

--- a/crates/jcode-provider-metadata/src/lib.rs
+++ b/crates/jcode-provider-metadata/src/lib.rs
@@ -142,7 +142,7 @@ pub const OPENCODE_PROFILE: OpenAiCompatibleProfile = OpenAiCompatibleProfile {
     api_base: "https://opencode.ai/zen/v1",
     api_key_env: "OPENCODE_API_KEY",
     env_file: "opencode.env",
-    setup_url: "https://opencode.ai/docs/providers#opencode-zen",
+    setup_url: "https://github.com/1jehuang/jcode#openai-compatible-providers",
     default_model: Some("qwen/qwen3-coder-plus"),
     requires_api_key: true,
 };
@@ -153,8 +153,8 @@ pub const OPENCODE_GO_PROFILE: OpenAiCompatibleProfile = OpenAiCompatibleProfile {
     api_base: "https://opencode.ai/zen/go/v1",
     api_key_env: "OPENCODE_GO_API_KEY",
     env_file: "opencode-go.env",
-    setup_url: "https://opencode.ai/docs/providers#opencode-go",
-    default_model: Some("THUDM/GLM-4.5"),
+    setup_url: "https://github.com/1jehuang/jcode#openai-compatible-providers",
+    default_model: Some("THUDM/GLM-4.9"),
     requires_api_key: true,
 };

Also updated OPENCODE_GO_PROFILE.default_model from THUDM/GLM-4.5 to THUDM/GLM-4.9 to reflect current available model.

Test

cargo test -p jcode-provider-metadata

✅ All 7 tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions