mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +08:00
feat: add endpointCandidates for Ucloud/X-Code Claude presets and unify Ucloud apiKeyUrl
This commit is contained in:
@@ -563,6 +563,7 @@ export const providerPresets: ProviderPreset[] = [
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://api.modelverse.cn"],
|
||||
category: "aggregator",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "ucloud", // 促销信息 i18n key
|
||||
@@ -596,6 +597,7 @@ export const providerPresets: ProviderPreset[] = [
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://www.x-code.cn"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "x-code", // 促销信息 i18n key
|
||||
|
||||
@@ -1229,7 +1229,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
name: "Ucloud",
|
||||
websiteUrl: "https://www.compshare.cn",
|
||||
apiKeyUrl:
|
||||
"https://www.compshare.cn/docs/modelverse/best_practice/openclaw",
|
||||
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.modelverse.cn/v1",
|
||||
apiKey: "",
|
||||
|
||||
Reference in New Issue
Block a user