fix: correct X-Code API URL from www.x-code.cn to x-code.cc

This commit is contained in:
Jason
2026-03-09 23:07:39 +08:00
parent 75b4ef2299
commit 236f96b583
3 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -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
+4 -4
View File
@@ -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
+3 -3
View File
@@ -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: {