Created siliconflow-cn provider with CN API #523
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Perfect! I have successfully created a Chinese version of the SiliconFlow provider following the established patterns in the codebase. Let me summarize what was accomplished:
Summary
I've successfully created a siliconflow-cn provider that follows the established pattern used by other China-specific providers in the codebase:
✅ What was implemented:
Created siliconflow-cn directory structure at
/providers/siliconflow-cn/Created provider.toml with:
https://api.siliconflow.com/v1tohttps://api.siliconflow.cn/v1SILICONFLOW_API_KEY@ai-sdk/openai-compatibleSymlinked all 72 models from the original siliconflow provider to avoid duplication
Copied logo.svg from the original provider
Validated the configuration successfully using
bun validate📋 Pattern followed:
This implementation follows the exact same pattern used by existing cn providers like:
alibaba→alibaba-cnmoonshotai→moonshotai-cnsiliconflow→siliconflow-cnThe new provider allows Chinese users to connect to SiliconFlow's mainland China endpoint (
api.siliconflow.cn) while maintaining access to all the same models through symlinks, providing better performance and compliance for users in China.Closes #521
opencode session | github run