mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 01:25:33 +08:00
feat(presets): add Code0.ai partner preset for 7 apps
Partner aggregator (New API gateway) across Claude Code, Claude Desktop, Codex, Gemini, OpenCode, OpenClaw, and Hermes. Claude Code, Claude Desktop, and Gemini use the bare host (gemini-3.1-pro-preview for Gemini); Codex, OpenCode, OpenClaw, and Hermes use /v1 with gpt-5.5. Marks isPartner with ?source=ccswitch attribution on apiKeyUrl only (website URL stays clean). Adds the partnerPromotion blurb in all four locales and a sponsor row in all four READMEs. Positioned after ClaudeAPI in the Claude Code and Claude Desktop lists (the two apps that carry a ClaudeAPI preset). Registers the favicon-derived code0.png icon via URL import; the README banner is normalized to the standard 1920x798 aspect ratio.
This commit is contained in:
@@ -450,6 +450,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Code0",
|
||||
websiteUrl: "https://code0.ai",
|
||||
apiKeyUrl: "https://code0.ai?source=ccswitch",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "Code0",
|
||||
options: {
|
||||
baseURL: "https://code0.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "code0",
|
||||
icon: "code0",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
Reference in New Issue
Block a user