Skip to content

feat: add SSYCloud(胜算云) LLM provider preset - #4036

Open
xxshu26 wants to merge 2 commits into
iOfficeAI:mainfrom
xxshu26:feat/SSYCloud-provider
Open

feat: add SSYCloud(胜算云) LLM provider preset#4036
xxshu26 wants to merge 2 commits into
iOfficeAI:mainfrom
xxshu26:feat/SSYCloud-provider

Conversation

@xxshu26

@xxshu26 xxshu26 commented Aug 14, 2026

Copy link
Copy Markdown

feat: add SSYCloud(胜算云) LLM provider preset

Summary

  • Add SSYCloud (胜算云) as an OpenAI-compatible preset provider
  • Add the SSYCloud SVG logo through the existing backend asset system
  • Add a provider-specific “Get API Key” link
  • Base URL: https://router.shengsuanyun.com/api/v1
  • Requests use the existing OpenAI-compatible client behavior, including the X-Title: AionUi header
  • No breaking changes to existing providers

How to Use

  1. Open Settings → Model
  2. Add a new provider
  3. Select SSYCloud (胜算云) from the platform dropdown
  4. Get an API key from:
    https://www.shengsuanyun.com/?from=CH_VVVBZY1S
  5. Paste the API key
  6. Select or add a supported model
  7. Save the provider and start a conversation

File changed

  • packages/desktop/src/renderer/utils/model/modelPlatforms.ts

    • Add the SSYCloud provider preset
    • Configure it as an OpenAI-compatible custom provider
    • Set the Base URL to https://router.shengsuanyun.com/api/v1
    • Load the logo through buildLogoAssetUrl('ai-cloud/ssycloud.svg')
    • Configure the API key registration URL
  • packages/desktop/src/renderer/pages/settings/components/AddPlatformModal.tsx

    • Add support for an optional provider-specific API key registration link
    • Display the localized “Get API Key” link when apiKeyUrl is configured
    • Open the registration page through the existing external URL handler
  • packages/desktop/src/renderer/services/i18n/

    • Add the localized settings.getApiKey label
    • Update all supported locale files
    • Regenerate the i18n TypeScript key definitions
  • tests/unit/renderer/modelPlatforms.test.ts

    • Verify that SSYCloud is registered only once
    • Verify its display name, logo, platform type, Base URL, and API key URL
    • Verify unrelated providers do not display the SSYCloud API key link
  • Related AionCore asset:

    • crates/aionui-assets/assets/logos/ai-cloud/ssycloud.svg
    • Serve the SSYCloud logo through /api/assets/logos/ai-cloud/ssycloud.svg

Test plan

  • Run bun run test -- tests/unit/renderer/modelPlatforms.test.ts
  • Verify all model platform unit tests pass
  • Open Settings → Model and verify SSYCloud appears with the correct logo
  • Verify the “Get API Key” link opens the SSYCloud registration page
  • Add SSYCloud with a valid API key and model
  • Send a chat message and verify the request completes successfully

Notes

Dependencies

Depends on iOfficeAI/AionCore#850 for the SSYCloud logo asset.

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