mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
feat: update Ucloud presets and add OpenClaw defaults for Ucloud/Micu
- Update Ucloud links to coding-plan page across READMEs - Remove hardcoded model overrides from Claude preset - Switch Codex model from zai-org/glm-5 to gpt-5.4 - Replace GLM-5/MiniMax models with claude-opus-4-6 in OpenClaw preset - Add templateValues and suggestedDefaults for Ucloud and Micu OpenClaw presets
This commit is contained in:
@@ -56,7 +56,7 @@ Claude Code / Codex / Gemini official channels at 38% / 2% / 9% of original pric
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="180"><a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td width="180"><a href="https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td>Thanks to UCloud CompShare for sponsoring this project! CompShare is UCloud's AI cloud platform, providing stable and comprehensive domestic and international model APIs with just one key. Featuring cost-effective monthly and pay-as-you-go Coding Plan packages at 60-80% off official prices. Supports Claude Code, Codex, and API access. Enterprise-grade high concurrency, 24/7 technical support, and self-service invoicing. Users who register via <a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch">this link</a> will receive a free 5 CNY platform trial credit!</td>
|
||||
</tr>
|
||||
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ Claude Code / Codex / Gemini 公式チャンネルが最安で元価格の 38% /
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="180"><a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td width="180"><a href="https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td>UCloud CompShare のご支援に感謝します!CompShare は UCloud 傘下の AI クラウドプラットフォームで、国内外の安定した包括的なモデル API を 1 つのキーだけで利用可能。月額・従量課金のコストパフォーマンスに優れた Coding Plan パッケージを提供し、公式価格の 60〜80% オフで利用できます。Claude Code、Codex および API アクセスに対応。エンタープライズ級の高同時接続、24 時間年中無休のテクニカルサポート、セルフサービス請求書発行に対応。<a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch">こちらのリンク</a>から登録すると、無料で 5 元分のプラットフォーム体験クレジットがもらえます!</td>
|
||||
</tr>
|
||||
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ Claude Code / Codex / Gemini 官方渠道低至 3.8 / 0.2 / 0.9 折,充值更
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="180"><a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td width="180"><a href="https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch"><img src="assets/partners/logos/ucloud.png" alt="Ucloud" width="150"></a></td>
|
||||
<td>感谢优云智算赞助了本项目!优云智算是UCloud旗下AI云平台,提供稳定、全面的国内外模型API,仅一个key即可调用。主打包月、按量的高性价比 Coding Plan 套餐,基于官方2~5折优惠。支持接入 Claude Code、Codex 及 API 调用。支持企业高并发、7*24技术支持、自助开票。通过<a href="https://www.compshare.cn/?ytag=GPU_YY_YX_git_cc-switch">此链接</a>注册的用户,可得免费5元平台体验金!</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -555,15 +555,12 @@ export const providerPresets: ProviderPreset[] = [
|
||||
{
|
||||
name: "Ucloud",
|
||||
websiteUrl: "https://www.compshare.cn",
|
||||
apiKeyUrl: "https://api.modelverse.cn",
|
||||
apiKeyUrl:
|
||||
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.modelverse.cn",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
ANTHROPIC_MODEL: "zai-org/glm-5",
|
||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "zai-org/glm-5",
|
||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "zai-org/glm-5",
|
||||
ANTHROPIC_DEFAULT_OPUS_MODEL: "zai-org/glm-5",
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
|
||||
@@ -283,12 +283,13 @@ requires_openai_auth = true`,
|
||||
{
|
||||
name: "Ucloud",
|
||||
websiteUrl: "https://www.compshare.cn",
|
||||
apiKeyUrl: "https://api.modelverse.cn/v1",
|
||||
apiKeyUrl:
|
||||
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"ucloud",
|
||||
"https://api.modelverse.cn/v1",
|
||||
"zai-org/glm-5",
|
||||
"gpt-5.4",
|
||||
),
|
||||
endpointCandidates: ["https://api.modelverse.cn/v1"],
|
||||
category: "aggregator",
|
||||
|
||||
@@ -1228,21 +1228,18 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
{
|
||||
name: "Ucloud",
|
||||
websiteUrl: "https://www.compshare.cn",
|
||||
apiKeyUrl: "https://api.modelverse.cn/v1",
|
||||
apiKeyUrl:
|
||||
"https://www.compshare.cn/docs/modelverse/best_practice/openclaw",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.modelverse.cn/v1",
|
||||
apiKey: "",
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
{
|
||||
id: "zai-org/glm-5",
|
||||
name: "GLM-5",
|
||||
contextWindow: 200000,
|
||||
},
|
||||
{
|
||||
id: "MiniMax-M2.5",
|
||||
name: "MiniMax-M2.5",
|
||||
id: "claude-opus-4-6",
|
||||
name: "Claude Opus 4.6",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 5, output: 25 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1251,6 +1248,21 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
partnerPromotionKey: "ucloud", // 促销信息 i18n key
|
||||
icon: "ucloud",
|
||||
iconColor: "#000000",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "ucloud/claude-opus-4-6",
|
||||
},
|
||||
modelCatalog: {
|
||||
"ucloud/claude-opus-4-6": { alias: "Opus" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
@@ -1274,6 +1286,21 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
partnerPromotionKey: "micu",
|
||||
icon: "micu",
|
||||
iconColor: "#000000",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "micu/claude-opus-4-6",
|
||||
},
|
||||
modelCatalog: {
|
||||
"micu/claude-opus-4-6": { alias: "Opus" },
|
||||
},
|
||||
},
|
||||
},
|
||||
// ========== Cloud Providers ==========
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user