mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
feat(presets): add Unity2.ai partner provider across seven apps
Add Unity2.ai, a high-performance AI API relay partner, as a preset for Claude, Codex, Gemini, OpenCode, OpenClaw, Claude Desktop, and Hermes. Each preset carries the referral signup link as apiKeyUrl. - Register the unity2 icon via iconUrls (PNG URL import) + metadata - Add partnerPromotion copy in zh/en/ja/zh-TW; backfill the missing zh-TW ccsub entry - List Unity2.ai in the sponsor section of all README locales - Codex uses the bare base URL (gateway exposes /responses at root); OpenCode/OpenClaw/Hermes use the /v1 chat-completions endpoint with gpt-5.5 as the only preset model - Trim CCSub OpenCode/OpenClaw/Hermes model lists to gpt-5.5 to match - Normalize unity2/ccsub banners to the standard 2.41 aspect ratio
This commit is contained in:
@@ -420,12 +420,7 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"claude-opus-4-8": { name: "Claude Opus 4.8" },
|
||||
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
o3: { name: "o3" },
|
||||
"gemini-3.1-pro": { name: "Gemini 3.1 Pro" },
|
||||
"deepseek-v4-flash": { name: "DeepSeek V4 Flash" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
@@ -440,6 +435,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Unity2.ai",
|
||||
websiteUrl: "https://unity2.ai",
|
||||
apiKeyUrl: "https://unity2.ai/register?source=ccs",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "Unity2.ai",
|
||||
options: {
|
||||
baseURL: "https://api.unity2.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "unity2",
|
||||
icon: "unity2",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "DeepSeek",
|
||||
websiteUrl: "https://platform.deepseek.com",
|
||||
|
||||
Reference in New Issue
Block a user