mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
chore(presets): update SSSAiCode domain and endpoint nodes
Switch website/apiKey URLs to sssaicodeapi.com and replace base URL nodes with node-hk.sssaicodeapi.com (default), node-hk.sssaiapi.com, and node-cf.sssaicodeapi.com across all 7 app presets.
This commit is contained in:
@@ -801,17 +801,17 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
category: "third_party",
|
||||
baseUrl: "https://node-hk.sssaicode.com/api",
|
||||
baseUrl: "https://node-hk.sssaicodeapi.com/api",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
endpointCandidates: [
|
||||
"https://node-hk.sssaicode.com/api",
|
||||
"https://claude2.sssaicode.com/api",
|
||||
"https://anti.sssaicode.com/api",
|
||||
"https://node-hk.sssaicodeapi.com/api",
|
||||
"https://node-hk.sssaiapi.com/api",
|
||||
"https://node-cf.sssaicodeapi.com/api",
|
||||
],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "sssaicode",
|
||||
|
||||
@@ -870,18 +870,18 @@ export const providerPresets: ProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://node-hk.sssaicode.com/api",
|
||||
ANTHROPIC_BASE_URL: "https://node-hk.sssaicodeapi.com/api",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: [
|
||||
"https://node-hk.sssaicode.com/api",
|
||||
"https://claude2.sssaicode.com/api",
|
||||
"https://anti.sssaicode.com/api",
|
||||
"https://node-hk.sssaicodeapi.com/api",
|
||||
"https://node-hk.sssaiapi.com/api",
|
||||
"https://node-cf.sssaicodeapi.com/api",
|
||||
],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
|
||||
@@ -1078,18 +1078,18 @@ requires_openai_auth = true`,
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"sssaicode",
|
||||
"https://node-hk.sssaicode.com/api/v1",
|
||||
"https://node-hk.sssaicodeapi.com/api/v1",
|
||||
"gpt-5.5",
|
||||
),
|
||||
endpointCandidates: [
|
||||
"https://node-hk.sssaicode.com/api/v1",
|
||||
"https://claude2.sssaicode.com/api/v1",
|
||||
"https://anti.sssaicode.com/api/v1",
|
||||
"https://node-hk.sssaicodeapi.com/api/v1",
|
||||
"https://node-hk.sssaiapi.com/api/v1",
|
||||
"https://node-cf.sssaicodeapi.com/api/v1",
|
||||
],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
|
||||
@@ -241,24 +241,24 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://node-hk.sssaicode.com/api",
|
||||
GOOGLE_GEMINI_BASE_URL: "https://node-hk.sssaicodeapi.com/api",
|
||||
GEMINI_MODEL: "gemini-3.5-flash",
|
||||
},
|
||||
},
|
||||
baseURL: "https://node-hk.sssaicode.com/api",
|
||||
baseURL: "https://node-hk.sssaicodeapi.com/api",
|
||||
model: "gemini-3.5-flash",
|
||||
description: "SSSAiCode",
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "sssaicode",
|
||||
endpointCandidates: [
|
||||
"https://node-hk.sssaicode.com/api",
|
||||
"https://claude2.sssaicode.com/api",
|
||||
"https://anti.sssaicode.com/api",
|
||||
"https://node-hk.sssaicodeapi.com/api",
|
||||
"https://node-hk.sssaiapi.com/api",
|
||||
"https://node-cf.sssaicodeapi.com/api",
|
||||
],
|
||||
icon: "sssaicode",
|
||||
iconColor: "#000000",
|
||||
|
||||
@@ -1055,11 +1055,11 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
settingsConfig: {
|
||||
name: "sssaicode",
|
||||
base_url: "https://node-hk.sssaicode.com/api",
|
||||
base_url: "https://node-hk.sssaicodeapi.com/api",
|
||||
api_key: "",
|
||||
api_mode: "anthropic_messages",
|
||||
models: [
|
||||
|
||||
@@ -1841,10 +1841,10 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://node-hk.sssaicode.com/api",
|
||||
baseUrl: "https://node-hk.sssaicodeapi.com/api",
|
||||
apiKey: "",
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
|
||||
@@ -1540,13 +1540,13 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://www.sssaicode.com",
|
||||
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
apiKeyUrl: "https://sssaicodeapi.com/register?ref=DCP0SM",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/anthropic",
|
||||
name: "SSSAiCode",
|
||||
options: {
|
||||
baseURL: "https://node-hk.sssaicode.com/api/v1",
|
||||
baseURL: "https://node-hk.sssaicodeapi.com/api/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user