Add SiliconFlow provider preset#1884
Draft
mimeding wants to merge 1 commit into
Draft
Conversation
mimeding
force-pushed
the
provider-siliconflow-connectivity
branch
from
July 8, 2026 03:20
70a909e to
10ffef1
Compare
mimeding
marked this pull request as ready for review
July 8, 2026 03:37
mimeding
marked this pull request as draft
July 17, 2026 16:21
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.
Summary
provider: "siliconflow".https://api.siliconflow.com/v1and routes chat through/chat/completions; China-region accounts can still use Custom provider withapi.siliconflow.cnand/v1.Refs #1823.
Validation
git diff --checkbash scripts/i18n/check.shswiftlint lint Packages/OsaurusCore/Models/Configuration/ProviderCatalog.swift Packages/OsaurusCore/Models/Configuration/ProviderPresets.swift Packages/OsaurusCore/Services/Provider/ProviderCredentialInstructions.swift Packages/OsaurusCore/Tools/Configuration/ProviderConfigurationDomain.swift Packages/OsaurusCore/Tests/Configuration/ProviderPresetsTests.swift Packages/OsaurusCore/Tests/Tool/ProviderPresetCredentialSheetTests.swift --quietOSAURUS_DISABLE_KEYCHAIN_FOR_TESTS=1 OSAURUS_TEST_ROOT=/tmp/osaurus-provider-connectivity-test3 swift test --package-path Packages/OsaurusCore --filter 'ProviderPresetsTests|ProviderPresetCredentialSheetTests|ProviderConnectivityCenterTests|RemoteProviderEndpointPasteTests|RemoteProviderModelDiscoveryTests'\n-make app XCODEBUILD_FLAGS="CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO"(passed with existing project warnings and local CoreSimulator warning)\n\n## Security / live proof\n- Uses the existing API-key credential storage path; no secrets are logged or added to docs/tests.\n- Provider configuration tool aliases only resolve a preset id and do not accept credential material.\n- Live SiliconFlow credentialed model discovery/chat smoke was not run locally because no key was available; the endpoint routing and credential-safe setup path are covered by unit tests.Review state
This PR is intentionally draft. It was prompted by issue #1823 and verified against public API documentation, but there is no provider relationship and no credentialed live SiliconFlow proof. Users can already connect through the Custom OpenAI-compatible provider with the documented base URL. Promote this preset only if the maintainers choose to list SiliconFlow as a first-class provider and live model discovery, chat, and tool-calling validation is attached.