Skip to content

Conversation

@AnotiaWang
Copy link

@AnotiaWang AnotiaWang commented Oct 7, 2025

Related GitHub Issue

Closes: #8550

Description

This PR implements a new SiliconCloud provider based on the OpenAI compatible provider.

Key features include:

  1. Select API entrypoints:
  • api.siliconflow.cn (for Chinese users living in China)
  • api-st.siliconflow.cn (for Chinese users not located in China. This endpoint uses Cloudflare to accelerate requests)
  • api.siliconflow.com (for foreigners, billed in USD)
  1. A pre-configured model list, including SOTA models that are good at coding.
  2. For hybrid models, allow users to toggle reasoning and set reasoning budget tokens
  3. SiliconCloud is currently implementing a context caching machanism. This dedicated provider allows future integration if SiliconCloud's caching API isn't compatible with OpenAI.

Test Procedure

Manual steps:

  • Got an API key both from cloud.siliconflow.cn and cloud.siliconflow.com
  • Select the related API entrypoint, configured the API key and selected a model
  • Send messages to the model and see if it works

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Documentation Updates

Additional Notes

Get in Touch

Discord: anotiaw


Important

Add SiliconCloud provider with API handling, model configuration, and UI integration.

  • Behavior:
    • Adds SiliconCloudProvider to handle API requests in siliconcloud.ts.
    • Supports different API entry points based on user location.
    • Validates siliconCloudApiKey and model availability in validate.ts.
  • Models:
    • Adds siliconCloudModels and siliconCloudModelsByApiLine to provider-settings.ts.
    • Supports model selection based on API line in ApiOptions.tsx.
  • UI:
    • Adds SiliconCloud component to providers for API key and entry point configuration.
    • Updates i18n files for new SiliconCloud strings.
  • Misc:
    • Updates providerNames and modelIdKeysByProvider to include siliconcloud in provider-settings.ts.
    • Adds validation for siliconcloud in validate.ts.

This description was created by Ellipsis for 85db46a. You can customize this summary. It will automatically update as commits are pushed.

@AnotiaWang AnotiaWang requested review from cte, jr and mrubens as code owners October 7, 2025 12:25
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 7, 2025
@dosubot dosubot bot added the enhancement New feature or request label Oct 7, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 7, 2025
Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some new issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

@AnotiaWang AnotiaWang force-pushed the feat/provider-siliconcloud branch from 1672b0b to d041dc5 Compare October 8, 2025 06:27
Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

@AnotiaWang AnotiaWang force-pushed the feat/provider-siliconcloud branch from d041dc5 to c84dadd Compare October 8, 2025 12:36
Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
@AnotiaWang AnotiaWang force-pushed the feat/provider-siliconcloud branch from 0c96cbc to 93643e6 Compare October 8, 2025 13:47
Copy link

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention. See inline comments for concrete, minimal fixes.

@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 9, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add SiliconCloud provider support

2 participants