mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
feat(presets): promote SudoCode to paid sponsor across six clients
Replace the legacy sudocode.us provider (a name collision) with the new paid sponsor SudoCode on sudocode.chat, updated in place across six clients: Claude Code, Codex, Claude Desktop, OpenCode, OpenClaw, Hermes. - Switch endpoints to api.sudocode.chat, add isPartner + partnerPromotionKey, and add four-locale partnerPromotion copy - Claude Code / Desktop use direct passthrough (no model mapping) - Codex / OpenCode / OpenClaw / Hermes use gpt-5.6-sol - Remove the Gemini entry (outside sponsor scope) - Replace the provider icon with the new brand PNG
This commit is contained in:
@@ -1620,21 +1620,24 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SudoCode",
|
||||
websiteUrl: "https://sudocode.us",
|
||||
apiKeyUrl: "https://sudocode.us",
|
||||
websiteUrl: "https://sudocode.chat",
|
||||
apiKeyUrl:
|
||||
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai",
|
||||
name: "SudoCode",
|
||||
options: {
|
||||
baseURL: "https://sudocode.us/v1",
|
||||
baseURL: "https://api.sudocode.chat/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
"gpt-5.6-sol": { name: "GPT-5.6 Sol" },
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "sudocode",
|
||||
icon: "sudocode",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
|
||||
Reference in New Issue
Block a user