From 3e5aa11519b7727845f9c47bb5618a4d88a9ad89 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 31 Oct 2026 09:40:37 +0800 Subject: [PATCH] provider: Qwen Cloud, Alibaba's international Qwen platform, is a preset with its regions and Token Plan (judi0713) judi0713 on Discord (v0.1.2288) asked for Qwen Cloud (qwencloud.com). Its keys are its own, made at home.qwencloud.com, and serve neither DashScope's nor Bailian's hosts, so none of magpie's Qwen presets took them. Two presets, the way Alibaba's other pay-as-you-go/Token Plan pair is modelled, because each key gets 401 at the other's host: - qwencloud: pay as you go, sk-ws- keys, at https://{region}.maas.qwencloudapi.com/compatible-mode/v1 (Chat) and /apps/anthropic (Messages), in six regions named by their ids as Alibaba's docs name them: ap-southeast-1 (the default), us-east-1, eu-central-1, ap-northeast-1, cn-hongkong, cn-beijing. Catalog alibaba. - qwencloud-token-plan: sk-sp- keys, token-plan.maas.qwencloudapi.com, Singapore only, with the plan overview's text models. Endpoints, regions, key prefixes and the plan's models are from docs.qwencloud.com ("Regions and endpoints" and the Token Plan overview), not guessed. Responses is left out, as in the other Qwen presets. The gateway's dashScope() now knows both presets and the *.maas.qwencloudapi.com hosts, so a Qwen Cloud stream gets the same enable_thinking handling a DashScope one does. Import (presetAt), the CLI's region= and magpie://import?preset=qwencloud®ion=... map to it. docs/reference.md, the CLI help and the site's import page (en, zh, ja) name them. Region names are ids, so no string is new to i18n.js and nothing in the GUI changed. Run (mote, at 708213f65 on c272e5582; after it the commit was rebased on 876d477d7, which touches none of these files, and the new helpers' comment was moved above bedrockRegions' doc comment, no code changed; at the pushed head the provider tests below ran again, ok): - gofmt -l: clean. - go vet -tags nogui ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./...: ok. - go test -tags nogui ./... -timeout 45m -count=1: every package ok (gateway 804s, provider 205s) except two reds already filed, in files this doesn't touch: internal/proc TestNoCommandBypassesProc (claudetui/child_unix.go's exec.Command, #4491) and internal/update TestRelaunchOpenTriedAgain (TempDir cleanup not empty, #3881). - At the pushed head: go test ./internal/provider -run 'TestQwenCloud|TestQwenTokenPlan|Preset|TestParseImport': ok. - No GUI change, so no GUI run. Broken by hand: - Preset ids renamed: TestQwenCloud red ("no preset qwencloud-token-plan"). - gateway.go's dashScope() back to main: TestDashScopeHosts red on the 5 new Qwen Cloud entries; the maas.qwencloudapi.com.example case stays not-DashScope. Not tried: - No real Qwen Cloud key: no request went to qwencloudapi.com. - The decision model (decide.go's bailianDecides hosts) doesn't know Qwen Cloud, and image models on these presets are the next commit's. - The site isn't deployed by this commit. --- docs/reference.md | 10 ++++ internal/cli/providers_cli.go | 2 + internal/gateway/dashscope_stream_test.go | 9 +++- internal/gateway/gateway.go | 8 ++-- internal/provider/presets.go | 38 +++++++++++++++ internal/provider/qwenplan_test.go | 56 +++++++++++++++++++++++ site/public/docs/import.html | 5 +- site/public/docs/ja/import.html | 5 +- site/public/docs/zh/import.html | 5 +- 9 files changed, 128 insertions(+), 10 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index 5a89de12b..4b17c0755 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -889,6 +889,16 @@ same model on the Qwen AI platform's pay as you go is `qwen-decision` Neither plan has an API for its credits: the console's subscription page shows them, so magpie shows no plan usage for these keys. +Qwen Cloud (qwencloud.com), Alibaba's international Qwen platform, has keys +of its own, made at home.qwencloud.com. Its pay as you go is `qwencloud`, +at `{region}.maas.qwencloudapi.com` in six regions (`ap-southeast-1`, the +default, `us-east-1`, `eu-central-1`, `ap-northeast-1`, `cn-hongkong` and +`cn-beijing`), each region's `sk-ws-` key taken only there. Its Token Plan is +`qwencloud-token-plan` (`token-plan.maas.qwencloudapi.com`, Singapore only, +`sk-sp-` keys), with the plan's documented text models. Both serve Chat +Completions at `/compatible-mode/v1` and Anthropic Messages at +`/apps/anthropic`. + ### Google Vertex AI Google Vertex AI (`google-vertex`), which Google's documentation now calls diff --git a/internal/cli/providers_cli.go b/internal/cli/providers_cli.go index 47fde320a..52c33c61b 100644 --- a/internal/cli/providers_cli.go +++ b/internal/cli/providers_cli.go @@ -117,6 +117,8 @@ const providerUsage = `usage: magpie provider add bailian-decision sk-… workspace= (or region=ap-southeast-1, or region=token-plan with an sk-sp- key) magpie provider add bailian-token-plan sk-sp-… (Bailian's Token Plan: its chat models, and its decision model for routing groups; qwen-token-plan is the Qwen AI platform's, qwen-decision its pay-as-you-go decision model) + magpie provider add qwencloud sk-ws-… region=us-east-1 (Qwen Cloud, Alibaba's international platform, pay as you go; + qwencloud-token-plan sk-sp-… is its Token Plan) magpie provider add google-vertex project=my-project impersonate=vertex@my-project.iam.gserviceaccount.com (Google Vertex AI in your Google Cloud project, with no key: signed with gcloud's Application Default Credentials (gcloud auth application-default login) unless diff --git a/internal/gateway/dashscope_stream_test.go b/internal/gateway/dashscope_stream_test.go index 018fe9417..3ad97ce19 100644 --- a/internal/gateway/dashscope_stream_test.go +++ b/internal/gateway/dashscope_stream_test.go @@ -73,12 +73,19 @@ func TestDashScopeHosts(t *testing.T) { {Chat: "https://token-plan.maas.qianwenaiapi.com/compatible-mode/v1"}, {Chat: "https://maas.qianwenaiapi.com/compatible-mode/v1"}, {Chat: "https://dashscope.aliyuncs.com/compatible-mode/v1"}, + // Qwen Cloud's (judi0713): its presets, its plan's host, a region's + // and the regionless Singapore one + {Preset: "qwencloud"}, {Preset: "qwencloud-token-plan"}, + {Chat: "https://token-plan.maas.qwencloudapi.com/compatible-mode/v1"}, + {Chat: "https://us-east-1.maas.qwencloudapi.com/compatible-mode/v1"}, + {Chat: "https://maas.qwencloudapi.com/compatible-mode/v1"}, } { if !dashScope(p) { t.Errorf("not DashScope: %+v", p) } } - if dashScope(provider.Provider{Chat: "https://api.deepseek.com/v1"}) || dashScope(provider.Provider{Chat: "https://qianwenaiapi.com.example/v1"}) { + if dashScope(provider.Provider{Chat: "https://api.deepseek.com/v1"}) || dashScope(provider.Provider{Chat: "https://qianwenaiapi.com.example/v1"}) || + dashScope(provider.Provider{Chat: "https://maas.qwencloudapi.com.example/v1"}) { t.Error("another vendor is DashScope") } } diff --git a/internal/gateway/gateway.go b/internal/gateway/gateway.go index c60bf8010..a52a51c40 100644 --- a/internal/gateway/gateway.go +++ b/internal/gateway/gateway.go @@ -7394,15 +7394,17 @@ func render(proto provider.Protocol, res Result, r *Request) []byte { // ---- small helpers ------------------------------------------------------------ // dashScope reports whether p is Alibaba Cloud's Model Studio (DashScope, -// Bailian): Qwen's presets, or one of its hosts given as a custom provider. +// Bailian, Qwen Cloud): Qwen's presets, or one of its hosts given as a +// custom provider. func dashScope(p provider.Provider) bool { switch p.Preset { - case "qwen", "qwen-cn", "qwen-token-plan", "bailian-token-plan": + case "qwen", "qwen-cn", "qwen-token-plan", "bailian-token-plan", "qwencloud", "qwencloud-token-plan": return true } h := p.Host() return strings.HasPrefix(h, "dashscope") && strings.HasSuffix(h, ".aliyuncs.com") || - strings.HasSuffix(h, ".maas.aliyuncs.com") || h == "maas.qianwenaiapi.com" || strings.HasSuffix(h, ".maas.qianwenaiapi.com") + strings.HasSuffix(h, ".maas.aliyuncs.com") || h == "maas.qianwenaiapi.com" || strings.HasSuffix(h, ".maas.qianwenaiapi.com") || + h == "maas.qwencloudapi.com" || strings.HasSuffix(h, ".maas.qwencloudapi.com") } func streamOf(body []byte) bool { diff --git a/internal/provider/presets.go b/internal/provider/presets.go index 9debd7a71..7c43801b5 100644 --- a/internal/provider/presets.go +++ b/internal/provider/presets.go @@ -412,6 +412,26 @@ var presets = []PresetDef{ Note: "Alibaba Cloud Bailian · subscription", Website: "https://help.aliyun.com/zh/model-studio/token-plan-overview", KeysURL: "https://bailian.console.aliyun.com/cn-beijing/subscription/token-plan/personal", Models: alibabaPlanModels}, + // Qwen Cloud (qwencloud.com) is Alibaba's international Qwen platform, + // on keys of its own made at home.qwencloud.com, at + // {region}.maas.qwencloudapi.com (docs.qwencloud.com, "Regions and + // endpoints"): pay as you go (sk-ws- keys, each kept to its region) in + // six regions, Singapore the default, and the Token Plan (sk-sp- keys) + // at token-plan.maas.qwencloudapi.com, Singapore only. Each key gets 401 + // at the other's host, so the plan is a preset of its own as Alibaba's + // other two are. The plan's models are its overview's text models. + {ID: "qwencloud-token-plan", Name: "Qwen Cloud Token Plan", Short: "Qwen Cloud Plan", Icon: "qwen-color", Kind: KindVendor, + Chat: "https://token-plan.maas.qwencloudapi.com/compatible-mode/v1", Anthropic: "https://token-plan.maas.qwencloudapi.com/apps/anthropic", + Note: "Qwen Cloud · subscription", + Website: "https://docs.qwencloud.com/token-plan/overview", KeysURL: "https://home.qwencloud.com/analytics/token-plan/individual", + Models: []string{"auto", "qwen3.8-max", "qwen3.8-flash", "qwen3.7-max", "qwen3.7-plus", "qwen3.6-flash", + "deepseek-v4.1-flash", "deepseek-v4.1-flash-1017", "deepseek-v4-pro", "deepseek-v4-pro-0813", "deepseek-v4-flash-0731", + "glm-5.3", "glm-5.2"}}, + {ID: "qwencloud", Name: "Qwen Cloud", Icon: "qwen-color", Kind: KindVendor, Catalog: "alibaba", + Chat: qwenCloudChat("ap-southeast-1"), Anthropic: qwenCloudAnthropic("ap-southeast-1"), + Note: "Qwen Cloud · pay as you go", + Website: "https://docs.qwencloud.com/developer-guides/getting-started/regions", KeysURL: "https://home.qwencloud.com/api-keys", + Regions: qwenCloudRegions("ap-southeast-1", "us-east-1", "eu-central-1", "ap-northeast-1", "cn-hongkong", "cn-beijing")}, {ID: "mistral", Name: "Mistral", Icon: "mistral-color", Kind: KindVendor, Catalog: "mistral", Chat: "https://api.mistral.ai/v1", Website: "https://console.mistral.ai", KeysURL: "https://console.mistral.ai/api-keys"}, @@ -668,6 +688,24 @@ func bedrockAnthropic(region string) string { return "https://bedrock-runtime." + region + ".amazonaws.com/anthropic" } +// qwenCloudRegions are Qwen Cloud's pay-as-you-go regions, each at its own +// host and named by its id, as Alibaba's docs name them. +func qwenCloudRegions(ids ...string) []Region { + out := make([]Region, len(ids)) + for i, id := range ids { + out[i] = Region{ID: id, Name: id, Chat: qwenCloudChat(id), Anthropic: qwenCloudAnthropic(id)} + } + return out +} + +func qwenCloudChat(region string) string { + return "https://" + region + ".maas.qwencloudapi.com/compatible-mode/v1" +} + +func qwenCloudAnthropic(region string) string { + return "https://" + region + ".maas.qwencloudapi.com/apps/anthropic" +} + // bedrockRegions are the regions picked between, named by their codes, the // ones the AWS console and a key's region are given in. func bedrockRegions(ids ...string) []Region { diff --git a/internal/provider/qwenplan_test.go b/internal/provider/qwenplan_test.go index 15b99c7d6..74a1a1b45 100644 --- a/internal/provider/qwenplan_test.go +++ b/internal/provider/qwenplan_test.go @@ -9,6 +9,8 @@ import ( "slices" "strings" "testing" + + "github.com/yetone/magpie/internal/catalog" ) // Alibaba Cloud's Token Plan (Jeremy on Discord): its own host, apart from @@ -152,3 +154,57 @@ func TestQwenDecisionPreset(t *testing.T) { t.Fatal("icons") } } + +// Qwen Cloud (judi0713 on Discord), Alibaba's international Qwen platform: +// pay as you go at {region}.maas.qwencloudapi.com in six regions and its +// Token Plan at token-plan.maas.qwencloudapi.com, each on keys of its own, +// as docs.qwencloud.com's "Regions and endpoints" gives them. No real Qwen +// Cloud key was tried. +func TestQwenCloud(t *testing.T) { + p, err := FromPreset("qwencloud-token-plan") + if err != nil { + t.Fatal(err) + } + if p.Chat != "https://token-plan.maas.qwencloudapi.com/compatible-mode/v1" || p.Anthropic != "https://token-plan.maas.qwencloudapi.com/apps/anthropic" { + t.Fatalf("plan's endpoints: %q %q", p.Chat, p.Anthropic) + } + if got := p.planModels(nil); len(got) != len(Preset("qwencloud-token-plan").Models) || !slices.ContainsFunc(got, func(m catalog.Model) bool { return m.ID == "qwen3.8-max" }) { + t.Fatalf("plan's: %+v", got) + } + im, _ := imported("Qwen Cloud", "sk-sp-x", endpoints{chat: "https://token-plan.maas.qwencloudapi.com/compatible-mode/v1"}, nil) + if im.Preset != "qwencloud-token-plan" { + t.Fatalf("plan imported as %q", im.Preset) + } + + p, err = FromPreset("qwencloud") + if err != nil { + t.Fatal(err) + } + if p.Chat != "https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1" || p.Anthropic != "https://ap-southeast-1.maas.qwencloudapi.com/apps/anthropic" { + t.Fatalf("pay as you go's endpoints: %q %q", p.Chat, p.Anthropic) + } + pr := Preset("qwencloud") + var ids []string + for _, r := range pr.Regions { + ids = append(ids, r.ID) + if r.Chat != "https://"+r.ID+".maas.qwencloudapi.com/compatible-mode/v1" || r.Anthropic != "https://"+r.ID+".maas.qwencloudapi.com/apps/anthropic" { + t.Errorf("region %s: %q %q", r.ID, r.Chat, r.Anthropic) + } + } + if want := []string{"ap-southeast-1", "us-east-1", "eu-central-1", "ap-northeast-1", "cn-hongkong", "cn-beijing"}; !slices.Equal(ids, want) { + t.Fatalf("regions %v, want %v", ids, want) + } + if pr.Regions[0].Chat != pr.Chat { + t.Fatal("the first region isn't the default") + } + for _, chat := range []string{"https://eu-central-1.maas.qwencloudapi.com/compatible-mode/v1", "https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1"} { + im, _ := imported("Qwen Cloud", "sk-ws-x", endpoints{chat: chat}, nil) + if im.Preset != "qwencloud" || im.Chat != chat { + t.Fatalf("%s imported as %q at %q", chat, im.Preset, im.Chat) + } + } + q, err := ParseImport("magpie://import?preset=qwencloud®ion=us-east-1") + if err != nil || q.Chat != "https://us-east-1.maas.qwencloudapi.com/compatible-mode/v1" { + t.Fatalf("import link: %+v (%v)", q, err) + } +} diff --git a/site/public/docs/import.html b/site/public/docs/import.html index ed0bdaad1..7b0b2a791 100644 --- a/site/public/docs/import.html +++ b/site/public/docs/import.html @@ -142,7 +142,7 @@

Presets

Vendors magpie already knows. magpie presets prints the current list.

- anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planqwencloudap-southeast-1 · us-east-1 · eu-central-1 · ap-northeast-1 · cn-hongkong · cn-beijingqwencloud-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio

A vendor with a preset only needs to add the key: magpie://import?preset=deepseek&key=sk-…. Want yours on the list? Open an issue.

@@ -297,7 +297,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["moonshot", "Kimi"], ["moonshot-cn", "Kimi (China)"], ["kimi-code", "Kimi Code"], ["kimi-code-cn", "Kimi Code (China)"], ["zhipu", "Zhipu GLM"], ["zai", "Z.ai"], ["minimax", "MiniMax"], ["minimax-cn", "MiniMax (China)"], ["stepfun", "StepFun"], ["stepfun-cn", "StepFun (China)"], ["xiaomi", "Xiaomi MiMo"], ["baidu-qianfan", "Baidu Qianfan"], ["tencent-cloud", "Tencent Cloud"], - ["huaweicloud", "Huawei Cloud MaaS"], ["volcengine", "Volcengine Ark"], ["qwen", "Qwen"], ["qwen-cn", "Qwen (China)"], ["qwen-token-plan", "Qwen Token Plan"], ["bailian-token-plan", "Bailian Token Plan"], + ["huaweicloud", "Huawei Cloud MaaS"], ["volcengine", "Volcengine Ark"], ["qwen", "Qwen"], ["qwen-cn", "Qwen (China)"], ["qwen-token-plan", "Qwen Token Plan"], ["bailian-token-plan", "Bailian Token Plan"], ["qwencloud", "Qwen Cloud"], ["qwencloud-token-plan", "Qwen Cloud Token Plan"], ["mistral", "Mistral"], ["groq", "Groq"], ["bedrock", "Amazon Bedrock"], ["ollama-cloud", "Ollama Cloud"], ["nous", "Nous Portal"], ["openrouter", "OpenRouter"], ["opencode-go", "OpenCode Go"], ["clinepass", "ClinePass"], ["opencode-zen", "OpenCode Zen"], ["kilo", "Kilo Gateway"], ["commandcode", "Command Code"], ["together", "Together AI"], ["fireworks", "Fireworks"], ["siliconflow", "SiliconFlow"], ["nvidia", "NVIDIA NIM"], ["modelscope", "ModelScope"], @@ -314,6 +314,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ "tencent-cloud": [["", "Plan · China"], ["cn", "Pay as you go · China"], ["intl", "Pay as you go · Global"], ["enterprise", "Enterprise plan · China"], ["enterprise-intl", "Enterprise plan · Global"]], "huaweicloud": [["", "Token Plan"], ["api", "Pay as you go"]], "volcengine": [["", "Coding Plan"], ["agent", "Agent Plan"], ["api", "Pay as you go"]], + "qwencloud": [["", "ap-southeast-1"], ["us-east-1", "us-east-1"], ["eu-central-1", "eu-central-1"], ["ap-northeast-1", "ap-northeast-1"], ["cn-hongkong", "cn-hongkong"], ["cn-beijing", "cn-beijing"]], "bedrock": [["", "us-east-1"], ["us-east-2", "us-east-2"], ["us-west-2", "us-west-2"], ["eu-central-1", "eu-central-1"], ["eu-west-1", "eu-west-1"], ["eu-west-3", "eu-west-3"], ["ap-northeast-1", "ap-northeast-1"], ["ap-southeast-1", "ap-southeast-1"], ["ap-southeast-2", "ap-southeast-2"], ["ap-south-1", "ap-south-1"]], "siliconflow": [["", "China"], ["intl", "Global"]], "yylx": [["", "Auto"], ["global", "Global"], ["cn", "China Mainland"]], diff --git a/site/public/docs/ja/import.html b/site/public/docs/ja/import.html index c0bd42fb6..58bebb127 100644 --- a/site/public/docs/ja/import.html +++ b/site/public/docs/ja/import.html @@ -142,7 +142,7 @@

プリセット

magpie が組み込みで知っているベンダーです。magpie presets で最新の一覧を表示できます。

- anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planqwencloudap-southeast-1 · us-east-1 · eu-central-1 · ap-northeast-1 · cn-hongkong · cn-beijingqwencloud-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio

プリセットのあるベンダーなら、キーを付けるだけです:magpie://import?preset=deepseek&key=sk-…。一覧に追加したい場合は issue を作成してください。

@@ -297,7 +297,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["moonshot", "Kimi"], ["moonshot-cn", "Kimi(中国)"], ["kimi-code", "Kimi Code"], ["kimi-code-cn", "Kimi Code(中国)"], ["zhipu", "Zhipu GLM"], ["zai", "Z.ai"], ["minimax", "MiniMax"], ["minimax-cn", "MiniMax(中国)"], ["stepfun", "StepFun"], ["stepfun-cn", "StepFun(中国)"], ["xiaomi", "Xiaomi MiMo"], ["baidu-qianfan", "Baidu Qianfan"], ["tencent-cloud", "Tencent Cloud"], - ["huaweicloud", "Huawei Cloud MaaS"], ["volcengine", "Volcengine Ark"], ["qwen", "Qwen"], ["qwen-cn", "Qwen(中国)"], ["qwen-token-plan", "Qwen Token Plan"], ["bailian-token-plan", "Alibaba Cloud Bailian Token Plan"], + ["huaweicloud", "Huawei Cloud MaaS"], ["volcengine", "Volcengine Ark"], ["qwen", "Qwen"], ["qwen-cn", "Qwen(中国)"], ["qwen-token-plan", "Qwen Token Plan"], ["bailian-token-plan", "Alibaba Cloud Bailian Token Plan"], ["qwencloud", "Qwen Cloud"], ["qwencloud-token-plan", "Qwen Cloud Token Plan"], ["mistral", "Mistral"], ["groq", "Groq"], ["bedrock", "Amazon Bedrock"], ["ollama-cloud", "Ollama Cloud"], ["nous", "Nous Portal"], ["openrouter", "OpenRouter"], ["opencode-go", "OpenCode Go"], ["clinepass", "ClinePass"], ["opencode-zen", "OpenCode Zen"], ["kilo", "Kilo Gateway"], ["commandcode", "Command Code"], ["together", "Together AI"], ["fireworks", "Fireworks"], ["siliconflow", "SiliconFlow"], ["nvidia", "NVIDIA NIM"], ["modelscope", "ModelScope"], @@ -314,6 +314,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ "tencent-cloud": [["", "プラン · 中国"], ["cn", "従量課金 · 中国"], ["intl", "従量課金 · グローバル"], ["enterprise", "Enterprise プラン · 中国"], ["enterprise-intl", "Enterprise プラン · グローバル"]], "huaweicloud": [["", "Token Plan"], ["api", "従量課金"]], "volcengine": [["", "Coding Plan"], ["agent", "Agent Plan"], ["api", "従量課金"]], + "qwencloud": [["", "ap-southeast-1"], ["us-east-1", "us-east-1"], ["eu-central-1", "eu-central-1"], ["ap-northeast-1", "ap-northeast-1"], ["cn-hongkong", "cn-hongkong"], ["cn-beijing", "cn-beijing"]], "bedrock": [["", "us-east-1"], ["us-east-2", "us-east-2"], ["us-west-2", "us-west-2"], ["eu-central-1", "eu-central-1"], ["eu-west-1", "eu-west-1"], ["eu-west-3", "eu-west-3"], ["ap-northeast-1", "ap-northeast-1"], ["ap-southeast-1", "ap-southeast-1"], ["ap-southeast-2", "ap-southeast-2"], ["ap-south-1", "ap-south-1"]], "siliconflow": [["", "中国"], ["intl", "グローバル"]], "yylx": [["", "自動"], ["global", "グローバル"], ["cn", "中国本土"]], diff --git a/site/public/docs/zh/import.html b/site/public/docs/zh/import.html index 14106d310..769ab5eba 100644 --- a/site/public/docs/zh/import.html +++ b/site/public/docs/zh/import.html @@ -142,7 +142,7 @@

预设

magpie 已经内置的厂商。magpie presets 会打印当前的列表。

- anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMobaidu-qianfan千帆 · personal · team · apitencent-cloudplan · cn · intl · enterprise · enterprise-intlhuaweicloudplan · apivolcengine火山方舟 · coding · agent · apiqwenqwen-cnqwen-token-planbailian-token-planqwencloudap-southeast-1 · us-east-1 · eu-central-1 · ap-northeast-1 · cn-hongkong · cn-beijingqwencloud-token-planmistralgroqbedrockollama-cloudopenrouteropencode-goclinepassopencode-zenkilocommandcodetogetherfireworkssiliconflowcn · intlnvidiamodelscope魔搭aihubmixpipellm302aicherryinyylxauto · global · cnollamalmstudio

有预设的厂商只需带上密钥:magpie://import?preset=deepseek&key=sk-…。想加入列表?提个 issue。

@@ -297,7 +297,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["moonshot", "Kimi"], ["moonshot-cn", "Kimi(中国)"], ["kimi-code", "Kimi Code"], ["kimi-code-cn", "Kimi Code(中国)"], ["zhipu", "智谱 GLM"], ["zai", "Z.ai"], ["minimax", "MiniMax"], ["minimax-cn", "MiniMax(中国)"], ["stepfun", "阶跃星辰"], ["stepfun-cn", "阶跃星辰(中国)"], ["xiaomi", "小米 MiMo"], ["baidu-qianfan", "百度千帆"], ["tencent-cloud", "腾讯云"], - ["huaweicloud", "华为云 MaaS"], ["volcengine", "火山方舟"], ["qwen", "通义千问"], ["qwen-cn", "通义千问(中国)"], ["qwen-token-plan", "通义千问 Token Plan"], ["bailian-token-plan", "阿里云百炼 Token Plan"], + ["huaweicloud", "华为云 MaaS"], ["volcengine", "火山方舟"], ["qwen", "通义千问"], ["qwen-cn", "通义千问(中国)"], ["qwen-token-plan", "通义千问 Token Plan"], ["bailian-token-plan", "阿里云百炼 Token Plan"], ["qwencloud", "Qwen Cloud"], ["qwencloud-token-plan", "Qwen Cloud Token Plan"], ["mistral", "Mistral"], ["groq", "Groq"], ["bedrock", "Amazon Bedrock"], ["ollama-cloud", "Ollama Cloud"], ["nous", "Nous Portal"], ["openrouter", "OpenRouter"], ["opencode-go", "OpenCode Go"], ["clinepass", "ClinePass"], ["opencode-zen", "OpenCode Zen"], ["kilo", "Kilo Gateway"], ["commandcode", "Command Code"], ["together", "Together AI"], ["fireworks", "Fireworks"], ["siliconflow", "硅基流动"], ["nvidia", "NVIDIA NIM"], ["modelscope", "魔搭 ModelScope"], @@ -314,6 +314,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ "tencent-cloud": [["", "套餐 · 中国"], ["cn", "按量 · 中国"], ["intl", "按量 · 国际"], ["enterprise", "企业版套餐 · 中国"], ["enterprise-intl", "企业版套餐 · 国际"]], "huaweicloud": [["", "Token Plan"], ["api", "按量付费"]], "volcengine": [["", "Coding Plan"], ["agent", "Agent Plan"], ["api", "按量付费"]], + "qwencloud": [["", "ap-southeast-1"], ["us-east-1", "us-east-1"], ["eu-central-1", "eu-central-1"], ["ap-northeast-1", "ap-northeast-1"], ["cn-hongkong", "cn-hongkong"], ["cn-beijing", "cn-beijing"]], "bedrock": [["", "us-east-1"], ["us-east-2", "us-east-2"], ["us-west-2", "us-west-2"], ["eu-central-1", "eu-central-1"], ["eu-west-1", "eu-west-1"], ["eu-west-3", "eu-west-3"], ["ap-northeast-1", "ap-northeast-1"], ["ap-southeast-1", "ap-southeast-1"], ["ap-southeast-2", "ap-southeast-2"], ["ap-south-1", "ap-south-1"]], "siliconflow": [["", "中国"], ["intl", "国际"]], "yylx": [["", "自动"], ["global", "海外"], ["cn", "中国大陆"]],