mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-24 23:10:39 +08:00
fix: correct X-Code API URL from www.x-code.cn to x-code.cc
This commit is contained in:
@@ -609,15 +609,15 @@ export const providerPresets: ProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "X-Code API",
|
||||
websiteUrl: "https://www.x-code.cn",
|
||||
apiKeyUrl: "https://www.x-code.cn",
|
||||
websiteUrl: "https://x-code.cc",
|
||||
apiKeyUrl: "https://x-code.cc",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://www.x-code.cn",
|
||||
ANTHROPIC_BASE_URL: "https://x-code.cc",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://www.x-code.cn"],
|
||||
endpointCandidates: ["https://x-code.cc"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "x-code", // 促销信息 i18n key
|
||||
|
||||
@@ -317,15 +317,15 @@ requires_openai_auth = true`,
|
||||
},
|
||||
{
|
||||
name: "X-Code API",
|
||||
websiteUrl: "https://www.x-code.cn",
|
||||
apiKeyUrl: "https://www.x-code.cn",
|
||||
websiteUrl: "https://x-code.cc",
|
||||
apiKeyUrl: "https://x-code.cc",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"x-code",
|
||||
"https://www.x-code.cn/v1",
|
||||
"https://x-code.cc/v1",
|
||||
"gpt-5.4",
|
||||
),
|
||||
endpointCandidates: ["https://www.x-code.cn/v1"],
|
||||
endpointCandidates: ["https://x-code.cc/v1"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "x-code", // 促销信息 i18n key
|
||||
|
||||
@@ -1147,13 +1147,13 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "X-Code API",
|
||||
websiteUrl: "https://www.x-code.cn",
|
||||
apiKeyUrl: "https://www.x-code.cn",
|
||||
websiteUrl: "https://x-code.cc",
|
||||
apiKeyUrl: "https://x-code.cc",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/anthropic",
|
||||
name: "X-Code API",
|
||||
options: {
|
||||
baseURL: "https://www.x-code.cn/v1",
|
||||
baseURL: "https://x-code.cc/v1",
|
||||
apiKey: "",
|
||||
},
|
||||
models: {
|
||||
|
||||
Reference in New Issue
Block a user