mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 02:05:57 +08:00
feat: rename UCloud provider to Compshare/优云智算 with i18n support
Add optional `nameKey` field to all preset interfaces for localized display names. The preset selector and form now resolve `nameKey` via i18next, falling back to `name` when unset. - zh: 优云智算 / en+ja: Compshare - Update model ID prefix ucloud/ → compshare/ in OpenClaw presets - Update partner promotion copy and README sponsor descriptions
This commit is contained in:
@@ -6,6 +6,7 @@ import type { PresetTheme } from "./claudeProviderPresets";
|
||||
|
||||
export interface CodexProviderPreset {
|
||||
name: string;
|
||||
nameKey?: string; // i18n key for localized display name
|
||||
websiteUrl: string;
|
||||
// 第三方供应商可提供单独的获取 API Key 链接
|
||||
apiKeyUrl?: string;
|
||||
@@ -281,13 +282,14 @@ requires_openai_auth = true`,
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "Ucloud",
|
||||
name: "Compshare",
|
||||
nameKey: "providerForm.presets.ucloud",
|
||||
websiteUrl: "https://www.compshare.cn",
|
||||
apiKeyUrl:
|
||||
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"ucloud",
|
||||
"compshare",
|
||||
"https://api.modelverse.cn/v1",
|
||||
"gpt-5.4",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user