mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-30 10:25:05 +08:00
fix(presets): add Kimi affiliate links (#3809)
Problem: Kimi and Moonshot preset links were user-clickable without the cc-switch affiliate query.\n\nDecision: Update only UI-facing preset website/API-key links and leave API request endpoints untouched.\n\nChange: Add aff=cc-switch to Kimi/Moonshot websiteUrl values and Codex/OpenCode API-key links. Co-authored-by: xumingyuan <xumingyuan@msh.team>
This commit is contained in:
@@ -398,7 +398,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi",
|
name: "Kimi",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
baseUrl: "https://api.moonshot.cn/anthropic",
|
baseUrl: "https://api.moonshot.cn/anthropic",
|
||||||
mode: "proxy",
|
mode: "proxy",
|
||||||
@@ -409,7 +409,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
websiteUrl: "https://www.kimi.com/code/docs/",
|
websiteUrl: "https://www.kimi.com/code/docs/?aff=cc-switch",
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
baseUrl: "https://api.kimi.com/coding/",
|
baseUrl: "https://api.kimi.com/coding/",
|
||||||
mode: "proxy",
|
mode: "proxy",
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi",
|
name: "Kimi",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://api.moonshot.cn/anthropic",
|
ANTHROPIC_BASE_URL: "https://api.moonshot.cn/anthropic",
|
||||||
@@ -369,7 +369,7 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
websiteUrl: "https://www.kimi.com/code/docs/",
|
websiteUrl: "https://www.kimi.com/code/docs/?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://api.kimi.com/coding/",
|
ANTHROPIC_BASE_URL: "https://api.kimi.com/coding/",
|
||||||
|
|||||||
@@ -404,8 +404,8 @@ requires_openai_auth = true`,
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi",
|
name: "Kimi",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys?aff=cc-switch",
|
||||||
auth: generateThirdPartyAuth(""),
|
auth: generateThirdPartyAuth(""),
|
||||||
config: generateThirdPartyConfig(
|
config: generateThirdPartyConfig(
|
||||||
"kimi",
|
"kimi",
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi",
|
name: "Kimi",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
name: "kimi",
|
name: "kimi",
|
||||||
base_url: "https://api.moonshot.cn/v1",
|
base_url: "https://api.moonshot.cn/v1",
|
||||||
@@ -532,7 +532,7 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
websiteUrl: "https://www.kimi.com/code/docs/",
|
websiteUrl: "https://www.kimi.com/code/docs/?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
name: "kimi_coding",
|
name: "kimi_coding",
|
||||||
base_url: "https://api.kimi.com/coding/",
|
base_url: "https://api.kimi.com/coding/",
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi k2.6",
|
name: "Kimi k2.6",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://api.moonshot.cn/v1",
|
baseUrl: "https://api.moonshot.cn/v1",
|
||||||
@@ -524,7 +524,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
websiteUrl: "https://www.kimi.com/code/docs/",
|
websiteUrl: "https://www.kimi.com/code/docs/?aff=cc-switch",
|
||||||
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://api.kimi.com/v1",
|
baseUrl: "https://api.kimi.com/v1",
|
||||||
|
|||||||
@@ -566,8 +566,8 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi k2.6",
|
name: "Kimi k2.6",
|
||||||
websiteUrl: "https://platform.moonshot.cn/console",
|
websiteUrl: "https://platform.moonshot.cn/console?aff=cc-switch",
|
||||||
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
npm: "@ai-sdk/openai-compatible",
|
npm: "@ai-sdk/openai-compatible",
|
||||||
name: "Kimi k2.6",
|
name: "Kimi k2.6",
|
||||||
@@ -599,8 +599,8 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
websiteUrl: "https://www.kimi.com/code/docs/",
|
websiteUrl: "https://www.kimi.com/code/docs/?aff=cc-switch",
|
||||||
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys?aff=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
npm: "@ai-sdk/anthropic",
|
npm: "@ai-sdk/anthropic",
|
||||||
name: "Kimi For Coding",
|
name: "Kimi For Coding",
|
||||||
|
|||||||
Reference in New Issue
Block a user