Created siliconflow-cn provider with CN API#523
Merged
Conversation
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Closed
Collaborator
|
/oc it looks like some of these models may not be properly symlinked, double check |
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Contributor
Author
SummaryI found and fixed a symlink issue in the models.dev repository: Issue Found:
Root Cause:
Resolution:
Verification:
The repository's symlink structure is now completely healthy with no broken links. |
Contributor
Author
|
User opencode-agent[bot] does not have write permissions |
This reverts commit df62e66.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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