From 066ece93bbb7c85a634bd565aae4377678ad8580 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 2 Nov 2026 13:44:11 +0800 Subject: [PATCH] provider: LongCat is a vendor preset, Meituan's LongCat API platform with chat completions, Responses and Anthropic messages (hoobnn on Discord) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LongCat makes its own models (LongCat-2.5, launched 11-02) and serves them at api.longcat.chat. magpie had LongCat's icon but no preset for it. The new preset is longcat ("LongCat", KindVendor, icon longcat, catalog models.dev's longcat). It uses: - chat completions and Responses at https://api.longcat.chat/openai/v1; - Anthropic messages at https://api.longcat.chat/anthropic; - docs at longcat.chat/platform/docs/zh/api-docs, keys at longcat.chat/platform/api_keys. The key goes as a Bearer. magpie sends both headers, and the docs ask for Bearer on both endpoints; x-api-key alone gets "missing_api_key". The model list is /openai/v1/models. longcat.chat's and longcat.ai's accounts use the same API host (both sites' api-docs pages name api.longcat.chat). An entry at those endpoints imports as the preset, for example CC Switch's Claude Code and Codex entries from LongCat's cc-switch page. OpenCode's auth.json "longcat" (models.dev's id) maps to the preset too. The README (en, zh), docs/reference.md and the site's import pages (en, zh, ja, and import.html, with the icon) list it. Sources, read 11-02: api-docs, api/models, api/model, api/model-params, api/chat, api/messages, image-video-understanding, cc-switch, pricing/ longcat-2.5, change-log, faq. Probed without a key, from this machine: /openai/v1/models and /anthropic/v1/models answer 401 authentication_error "missing_api_key". /openai/v1/chat/completions, /openai/v1/responses and /anthropic/v1/messages with a bad Bearer answer 401 "incorrect api key". Run at this head (base d24be3c25, origin/main at push), on mote: - TestLongCatPreset and TestLongCatList (the docs' literal /models example) pass. TestLongCatPreset goes red with the OpenCode mapping taken out ("OpenCode import: … Skip:it has no base URL"). - gofmt -l and GOOS=linux / GOOS=windows go vet ./internal/provider are clean. - go test -tags nogui -timeout 45m ./... is ok except three tests that have issues already: - TestEveryRouteHasACommandOrIsNamed (#4826) is red on a clean d24be3c25 too. - TestKeepOffWaitsForTheSetting (#3687) is red on a clean d24be3c25 too. - TestCodexPoolSaysTheClientsVersion (#4807) is red in the full package run and passes 3 of 3 alone on d24be3c25. - GUI add-sheet and add-button pass in Chromium and WebKit (12/12). No GUI file changed: the add sheet draws presets from /api. Not tried: - a real LongCat key or a real request (none available). - LongCat-2.5's window (1M), output cap (256K) and image input. These come from models.dev, which so far lists only LongCat-2.0 and LongCat-2.5-Preview, and LongCat's /models gives no facts. Until models.dev adds LongCat-2.5, magpie doesn't know them for it. - LongCat's thinking switch ({"type":"enabled"|"disabled"}). --- README.md | 2 +- README.zh-CN.md | 2 +- docs/reference.md | 2 +- internal/provider/import_opencode.go | 2 +- internal/provider/longcat_test.go | 71 ++++++++++++++++++++++++++++ internal/provider/presets.go | 10 ++++ site/public/docs/import.html | 4 +- site/public/docs/ja/import.html | 4 +- site/public/docs/zh/import.html | 4 +- site/public/icons/longcat.svg | 1 + site/public/import.html | 2 +- 11 files changed, 93 insertions(+), 11 deletions(-) create mode 100644 internal/provider/longcat_test.go create mode 100644 site/public/icons/longcat.svg diff --git a/README.md b/README.md index a30cede62..e0d091877 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ The cost: the model sees `{{API_KEY_…}}`, not the key, so a task about the val Pick a preset, paste a key. Model lists come from the vendor, with names and reasoning levels filled in from [models.dev](https://models.dev), so a model released this morning is in your picker on the next refresh. -> **Presets include** Anthropic · OpenAI · Google Gemini · Google Vertex AI · Amazon Bedrock (runtime and Mantle) · DeepSeek · Kimi · Zhipu GLM · MiniMax · StepFun · Qwen · Baidu Qianfan · Tencent Cloud · Huawei Cloud MaaS · Volcengine Ark · Mistral · Groq · Nous Portal · xAI · OpenRouter · Together · Fireworks · SiliconFlow · NVIDIA NIM · ModelScope · Ollama · LM Studio … and any OpenAI- or Anthropic-compatible URL. +> **Presets include** Anthropic · OpenAI · Google Gemini · Google Vertex AI · Amazon Bedrock (runtime and Mantle) · DeepSeek · Kimi · Zhipu GLM · MiniMax · StepFun · LongCat · Qwen · Baidu Qianfan · Tencent Cloud · Huawei Cloud MaaS · Volcengine Ark · Mistral · Groq · Nous Portal · xAI · OpenRouter · Together · Fireworks · SiliconFlow · NVIDIA NIM · ModelScope · Ollama · LM Studio … and any OpenAI- or Anthropic-compatible URL. **Import** brings in the providers from CC Switch, Claude Code, Codex and Alma. **[Add to magpie](https://usemagpie.ai/docs/import)** links let a provider's website hand its config to magpie in one click. Each key and each account can go through a proxy of its own. diff --git a/README.zh-CN.md b/README.zh-CN.md index 36800384f..9e8afe26f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -150,7 +150,7 @@ Agent 会把读到的东西放进提示词:一个 `.env`、一份配置、一 选一个预设,粘贴 key。模型列表直接来自厂商,名称和推理档位从 [models.dev](https://models.dev) 补全,今天早上刚发布的模型,下次刷新就出现在你的选择器里。 -> **预设包括** Anthropic · OpenAI · Google Gemini · Amazon Bedrock(runtime 与 Mantle)· DeepSeek · Kimi · 智谱 GLM · MiniMax · 阶跃星辰 · 通义千问 · 百度千帆 · 腾讯云 · 华为云 MaaS · 火山方舟 · Mistral · Groq · Nous Portal · xAI · OpenRouter · Together · Fireworks · 硅基流动 · NVIDIA NIM · 魔搭 · Ollama · LM Studio …… 以及任何兼容 OpenAI 或 Anthropic 的地址。 +> **预设包括** Anthropic · OpenAI · Google Gemini · Amazon Bedrock(runtime 与 Mantle)· DeepSeek · Kimi · 智谱 GLM · MiniMax · 阶跃星辰 · LongCat · 通义千问 · 百度千帆 · 腾讯云 · 华为云 MaaS · 火山方舟 · Mistral · Groq · Nous Portal · xAI · OpenRouter · Together · Fireworks · 硅基流动 · NVIDIA NIM · 魔搭 · Ollama · LM Studio …… 以及任何兼容 OpenAI 或 Anthropic 的地址。 **导入**能读取你在 CC Switch、Claude Code、Codex 和 Alma 里配置的 provider。[**「添加到 magpie」链接**](https://usemagpie.ai/docs/zh/import)让 provider 网站一键把配置交给 magpie。每个 key 和每个账号都可以走自己的代理。 diff --git a/docs/reference.md b/docs/reference.md index fa86319da..487d215ca 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -54,7 +54,7 @@ line; agents connected to magpie lose it when it quits. use its models through the gateway, with nothing copied and no key to paste. - **Providers with one field.** Pick a preset (Anthropic, OpenAI, Gemini, - Amazon Bedrock and its Mantle endpoint, DeepSeek, Kimi, GLM, MiniMax, StepFun, Qwen, Baidu Qianfan, Tencent Cloud Token Plan, + Amazon Bedrock and its Mantle endpoint, DeepSeek, Kimi, GLM, MiniMax, StepFun, LongCat, Qwen, Baidu Qianfan, Tencent Cloud Token Plan, Huawei Cloud MaaS, Volcengine Ark, Mistral, Groq, Nous Portal, xAI, OpenRouter, Together, Fireworks, SiliconFlow, NVIDIA NIM, ModelScope, AiHubMix, PipeLLM, 302.AI, Ollama, LM Studio…), paste a key, done. Custom vendors need a name and a base URL. magpie never diff --git a/internal/provider/import_opencode.go b/internal/provider/import_opencode.go index ef03aa170..905b988ed 100644 --- a/internal/provider/import_opencode.go +++ b/internal/provider/import_opencode.go @@ -47,7 +47,7 @@ var openCodePresets = map[string]string{ "zhipuai": "zhipu", "zai": "zai", "alibaba": "qwen", "alibaba-cn": "qwen-cn", "minimax": "minimax", "modelscope": "modelscope", "kilo": "kilo", "cline-pass": "clinepass", "kimi-code-plan-cn": "kimi-code-cn", "kimi-code-plan-global": "kimi-code", - "stepfun-step-plan": "stepfun-cn", "stepfun-ai-step-plan": "stepfun", + "stepfun-step-plan": "stepfun-cn", "stepfun-ai-step-plan": "stepfun", "longcat": "longcat", "volcengine-coding-plan": "volcengine", "alibaba-token-plan-cn": "bailian-token-plan", "tencent-token-plan": "tencent-cloud", } diff --git a/internal/provider/longcat_test.go b/internal/provider/longcat_test.go new file mode 100644 index 000000000..7b404c8ed --- /dev/null +++ b/internal/provider/longcat_test.go @@ -0,0 +1,71 @@ +package provider + +import ( + "context" + "net/http" + "net/http/httptest" + "os" + "path/filepath" + "testing" + + "github.com/yetone/magpie/internal/catalog" +) + +// LongCat (hoobnn on Discord) is a vendor preset: Meituan's own models at +// api.longcat.chat, chat completions and Responses under /openai/v1 and +// Anthropic messages under /anthropic, as its API docs and its CC Switch +// page give them, and an entry another app has there is the preset. +func TestLongCatPreset(t *testing.T) { + p, err := FromPreset("longcat") + if err != nil { + t.Fatal(err) + } + if p.Chat != "https://api.longcat.chat/openai/v1" || p.Responses != "https://api.longcat.chat/openai/v1" || p.Anthropic != "https://api.longcat.chat/anthropic" { + t.Fatalf("endpoints: %q %q %q", p.Chat, p.Responses, p.Anthropic) + } + if p.Name != "LongCat" || p.Icon != "longcat" || p.Catalog != "longcat" || p.KeysURL != "https://longcat.chat/platform/api_keys" { + t.Fatalf("preset: %+v", p) + } + if pr := Preset("longcat"); pr.Kind != KindVendor || pr.Hosts || pr.NoKey { + t.Fatalf("kind %q hosts %v noKey %v", pr.Kind, pr.Hosts, pr.NoKey) + } + // CC Switch's Claude Code entry (ANTHROPIC_BASE_URL) and its Codex one + // (base_url), as LongCat's cc-switch page shows them + for _, e := range []endpoints{{anthropic: "https://api.longcat.chat/anthropic"}, {responses: "https://api.longcat.chat/openai/v1"}} { + im, why := imported("Longcat", "k", e, nil) + if why != "" || im.Preset != "longcat" || im.Icon != "longcat" || im.Anthropic != "https://api.longcat.chat/anthropic" { + t.Fatalf("imported %+v: %q %+v", e, why, im) + } + } + // OpenCode keeps models.dev's provider id, longcat, in auth.json + dir := t.TempDir() + path := filepath.Join(dir, "auth.json") + if err := os.WriteFile(path, []byte(`{"longcat": {"type": "api", "key": "lc-key"}}`), 0o600); err != nil { + t.Fatal(err) + } + ims, err := readOpenCodeAuth(path) + if err != nil || len(ims) != 1 || ims[0].Skip != "" || ims[0].Provider.Preset != "longcat" || ims[0].Provider.Key != "lc-key" { + t.Fatalf("OpenCode import: %v %+v", err, ims) + } +} + +// Its list, /openai/v1/models with the key as a Bearer, as the docs' +// example answers it. +func TestLongCatList(t *testing.T) { + srv := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { + if r.URL.Path != "/openai/v1/models" || r.Header.Get("Authorization") != "Bearer k" { + rw.WriteHeader(http.StatusUnauthorized) + rw.Write([]byte(`{"error":{"code":"invalid_api_key","message":"missing_api_key","type":"authentication_error"}}`)) + return + } + rw.Write([]byte(`{ "object" : "list" , "data" : [ { "id" : "LongCat-2.5" , "object" : "model" , "owned_by" : "LongCat" } ] }`)) + })) + defer srv.Close() + ms, _, err := catalog.FetchAt(context.Background(), srv.URL+"/openai/v1", "k", false, nil) + if err != nil { + t.Fatal(err) + } + if len(ms) != 1 || ms[0].ID != "LongCat-2.5" { + t.Fatalf("%+v", ms) + } +} diff --git a/internal/provider/presets.go b/internal/provider/presets.go index 1d7f261fc..0955af8c7 100644 --- a/internal/provider/presets.go +++ b/internal/provider/presets.go @@ -276,6 +276,16 @@ var presets = []PresetDef{ {ID: "plan-ams", Name: "Plan · Europe", Chat: "https://token-plan-ams.xiaomimimo.com/v1", Responses: "https://token-plan-ams.xiaomimimo.com/v1", Anthropic: "https://token-plan-ams.xiaomimimo.com/anthropic", Catalog: "xiaomi-token-plan-ams, xiaomi"}, {ID: "api", Name: "Pay as you go", Chat: "https://api.xiaomimimo.com/v1", Responses: "https://api.xiaomimimo.com/v1", Anthropic: "https://api.xiaomimimo.com/anthropic", Catalog: "xiaomi"}, }}, + // Meituan's LongCat API platform (hoobnn on Discord): its own LongCat + // models at api.longcat.chat, one host for longcat.chat's and + // longcat.ai's accounts, chat completions and Responses under + // /openai/v1 and Anthropic messages under /anthropic, a key as a + // Bearer on both (x-api-key alone is "missing_api_key"); its list is + // /openai/v1/models (API 文档 api-docs, api/models, cc-switch, read + // 11-02). + {ID: "longcat", Name: "LongCat", Icon: "longcat", Kind: KindVendor, Catalog: "longcat", + Chat: "https://api.longcat.chat/openai/v1", Responses: "https://api.longcat.chat/openai/v1", Anthropic: "https://api.longcat.chat/anthropic", + Website: "https://longcat.chat/platform/docs/zh/api-docs", KeysURL: "https://longcat.chat/platform/api_keys"}, // Baidu Qianfan: a personal and an enterprise Token Plan, each at its // own endpoints under qianfan.baidubce.com on a key of its own; pay as // you go is the v2 API at the host's root, which serves its model list diff --git a/site/public/docs/import.html b/site/public/docs/import.html index cb8deb548..5956c360e 100644 --- a/site/public/docs/import.html +++ b/site/public/docs/import.html @@ -145,7 +145,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-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 + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMolongcatbaidu-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.

@@ -300,7 +300,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["anthropic", "Anthropic"], ["openai", "OpenAI"], ["google", "Google Gemini"], ["deepseek", "DeepSeek"], ["xai", "xAI"], ["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"], + ["xiaomi", "Xiaomi MiMo"], ["longcat", "LongCat"], ["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"], ["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"], diff --git a/site/public/docs/ja/import.html b/site/public/docs/ja/import.html index a56747f49..134638fb6 100644 --- a/site/public/docs/ja/import.html +++ b/site/public/docs/ja/import.html @@ -145,7 +145,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-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 + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMolongcatbaidu-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 を作成してください。

@@ -300,7 +300,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["anthropic", "Anthropic"], ["openai", "OpenAI"], ["google", "Google Gemini"], ["deepseek", "DeepSeek"], ["xai", "xAI"], ["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"], + ["xiaomi", "Xiaomi MiMo"], ["longcat", "LongCat"], ["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"], ["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"], diff --git a/site/public/docs/zh/import.html b/site/public/docs/zh/import.html index e2b7f7f4c..56c06b864 100644 --- a/site/public/docs/zh/import.html +++ b/site/public/docs/zh/import.html @@ -145,7 +145,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-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 + anthropicopenaigoogledeepseekxaimoonshotKimimoonshot-cnkimi-codekimi-code-cnzhipuGLM · api · codingzaiapi · codingminimaxminimax-cnstepfunplan · apistepfun-cnplan · apixiaomiMiMolongcatbaidu-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。

@@ -300,7 +300,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ ["anthropic", "Anthropic"], ["openai", "OpenAI"], ["google", "Google Gemini"], ["deepseek", "DeepSeek"], ["xai", "xAI"], ["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", "腾讯云"], + ["xiaomi", "小米 MiMo"], ["longcat", "LongCat"], ["baidu-qianfan", "百度千帆"], ["tencent-cloud", "腾讯云"], ["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"], diff --git a/site/public/icons/longcat.svg b/site/public/icons/longcat.svg new file mode 100644 index 000000000..d8b02c76b --- /dev/null +++ b/site/public/icons/longcat.svg @@ -0,0 +1 @@ +LongCat \ No newline at end of file diff --git a/site/public/import.html b/site/public/import.html index 050b3db9c..f54ff66c1 100644 --- a/site/public/import.html +++ b/site/public/import.html @@ -96,7 +96,7 @@ dd .m { display: inline-block; font-size: 12.5px; border: 1px solid var(--line); deepseek: ["DeepSeek", "deepseek-color.svg"], xai: ["xAI", "xai.svg"], moonshot: ["Kimi", "kimi.svg"], "moonshot-cn": ["Kimi (China)", "kimi.svg"], zhipu: ["Zhipu GLM", "zhipu-color.svg"], zai: ["Z.ai", "zhipu-color.svg"], minimax: ["MiniMax", "minimax-color.svg"], "minimax-cn": ["MiniMax (China)", "minimax-color.svg"], qwen: ["Qwen", "qwen-color.svg"], "qwen-cn": ["Qwen (China)", "qwen-color.svg"], - "baidu-qianfan": ["Baidu Qianfan", "baiducloud-color.svg"], + longcat: ["LongCat", "longcat.svg"], "baidu-qianfan": ["Baidu Qianfan", "baiducloud-color.svg"], "qianfan-token-plan": ["Baidu Qianfan", "baiducloud-color.svg"], "tencent-cloud": ["Tencent Cloud", "tencentcloud-color.svg"], "tencent-token-plan": ["Tencent Cloud", "tencentcloud-color.svg"], "tencent-tokenhub": ["Tencent Cloud", "tencentcloud-color.svg"], "tencent-tokenhub-cn": ["Tencent Cloud", "tencentcloud-color.svg"],