Skip to content

Add SiliconFlow provider preset#1884

Draft
mimeding wants to merge 1 commit into
osaurus-ai:mainfrom
mimeding:provider-siliconflow-connectivity
Draft

Add SiliconFlow provider preset#1884
mimeding wants to merge 1 commit into
osaurus-ai:mainfrom
mimeding:provider-siliconflow-connectivity

Conversation

@mimeding

@mimeding mimeding commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds SiliconFlow as a first-class OpenAI-compatible API-key provider preset.
  • Wires the provider picker/catalog, credential instructions, provider configuration tool aliases, localization keys, host matching, and provider-tool resolution for provider: "siliconflow".
  • Pins the international endpoint to https://api.siliconflow.com/v1 and routes chat through /chat/completions; China-region accounts can still use Custom provider with api.siliconflow.cn and /v1.

Refs #1823.

Validation

  • git diff --check
  • bash scripts/i18n/check.sh
  • swiftlint 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 --quiet
  • OSAURUS_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.

@mimeding
mimeding force-pushed the provider-siliconflow-connectivity branch from 70a909e to 10ffef1 Compare July 8, 2026 03:20
@mimeding
mimeding marked this pull request as ready for review July 8, 2026 03:37
@mimeding
mimeding marked this pull request as draft July 17, 2026 16:21
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.

1 participant