Skip to content

feat(provider): add SiliconFlow China region (siliconflow-CN)#2615

Merged
Hmbown merged 1 commit into
mainfrom
feat/siliconflow-cn
Jun 3, 2026
Merged

feat(provider): add SiliconFlow China region (siliconflow-CN)#2615
Hmbown merged 1 commit into
mainfrom
feat/siliconflow-cn

Conversation

@Hmbown

@Hmbown Hmbown commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Adds SiliconFlow China regional endpoint as new provider variant. Closes #2478 (partial). Credit: @Raid10Without1 (#2588).

Adds SiliconFlow China regional endpoint (api.siliconflow.cn) as new provider variant.

Credit: @Raid10Without1 (PR #2588)
Co-authored-by: Raid10没有1 <88494433+Raid10Without1@users.noreply.github.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmbown has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for the SiliconFlow China API provider (SiliconflowCN/SiliconflowCn), setting up its default base URL, configuration overrides, and TUI integration. However, several duplicate match arms for ApiProvider::SiliconflowCn were added in crates/tui/src/config.rs which will lead to compilation errors due to unreachable patterns. These duplicate arms must be removed and the indentation cleaned up.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread crates/tui/src/config.rs
Comment on lines +2335 to +2336
ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,
ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

There is a duplicate match arm for ApiProvider::SiliconflowCn here, which will cause a compilation error due to unreachable patterns. Please remove the duplicate arm and fix the indentation.

                ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,

Comment thread crates/tui/src/config.rs
Comment on lines +2390 to +2391
ApiProvider::SiliconflowCn => "siliconflow-CN",
ApiProvider::SiliconflowCn => "siliconflow-CN",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

There is a duplicate match arm for ApiProvider::SiliconflowCn here, which will cause a compilation error. Please remove the duplicate arm.

            ApiProvider::SiliconflowCn => "siliconflow-CN",

Comment thread crates/tui/src/config.rs
Comment on lines +3832 to +3833
ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,
ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

There is a duplicate match arm for ApiProvider::SiliconflowCn here, which will cause a compilation error. Please remove the duplicate arm and fix the indentation.

        ApiProvider::SiliconflowCn => DEFAULT_SILICONFLOW_CN_BASE_URL,

Comment thread crates/tui/src/config.rs
Comment on lines +4761 to +4762
ApiProvider::SiliconflowCn => "siliconflow-CN",
ApiProvider::SiliconflowCn => "siliconflow-CN",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

There is a duplicate match arm for ApiProvider::SiliconflowCn here, which will cause a compilation error. Please remove the duplicate arm and fix the indentation.

        ApiProvider::SiliconflowCn => "siliconflow-CN",

@Hmbown Hmbown merged commit 25340d1 into main Jun 3, 2026
10 of 15 checks passed
@Hmbown Hmbown deleted the feat/siliconflow-cn branch June 3, 2026 04:27
@shenjackyuanjie

Copy link
Copy Markdown
Contributor

This PR Intrduce some compile error……

image

@greptile-apps greptile-apps Bot mentioned this pull request Jun 3, 2026
3 tasks
yanghucai pushed a commit to yanghucai/CodeWhale that referenced this pull request Jun 3, 2026
…#2615)

Adds SiliconFlow China regional endpoint (api.siliconflow.cn) as new provider variant.

Credit: @Raid10Without1 (PR Hmbown#2588)

Co-authored-by: Raid10没有1 <88494433+Raid10Without1@users.noreply.github.com>
shenjackyuanjie added a commit to shenjackyuanjie/CodeWhale that referenced this pull request Jun 3, 2026
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.

Please consider making opencode-go a built-in provider.

2 participants