mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
chore(presets): update ClaudeCN referral link to claudecn.ai/register
Move the ClaudeCN invite link to https://claudecn.ai/register?aff=HEL9 across all 7 app presets (apiKeyUrl) and the four README sponsor rows (banner + CTA, which previously pointed at the bare .top domain with no referral tag). The websiteUrl and claudecn.top API endpoints are kept unchanged, so only the registration/referral link moves to the new domain and code.
This commit is contained in:
@@ -848,7 +848,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
category: "third_party",
|
||||
baseUrl: "https://claudecn.top",
|
||||
mode: "direct",
|
||||
|
||||
@@ -918,7 +918,7 @@ export const providerPresets: ProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://claudecn.top",
|
||||
|
||||
@@ -1304,7 +1304,7 @@ requires_openai_auth = true`,
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
category: "third_party",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
|
||||
@@ -354,7 +354,7 @@ export const grokBuildProviderPresets: GrokBuildProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
auth: grokAuth(),
|
||||
config: grokPresetConfig("ClaudeCN", "https://claudecn.top/v1"),
|
||||
category: "third_party",
|
||||
|
||||
@@ -1137,7 +1137,7 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
settingsConfig: {
|
||||
name: "claudecn",
|
||||
base_url: "https://claudecn.top",
|
||||
|
||||
@@ -1362,7 +1362,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://claudecn.top",
|
||||
apiKey: "",
|
||||
|
||||
@@ -1804,7 +1804,7 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
|
||||
apiKeyUrl: "https://claudecn.ai/register?aff=HEL9",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/anthropic",
|
||||
name: "ClaudeCN",
|
||||
|
||||
Reference in New Issue
Block a user