copilot-custom-endpoint 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -12
- package/docs/example-config.md +1 -1
- package/docs/models/glm.md +24 -13
- package/docs/models/kimi.md +7 -2
- package/docs/models/mimo.md +108 -41
- package/docs/models/minimax.md +76 -22
- package/docs/models/qwen.md +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,18 +19,18 @@ That's it. No code, no servers to manage (unless the model specifically needs th
|
|
|
19
19
|
|
|
20
20
|
## Pick a model
|
|
21
21
|
|
|
22
|
-
| Model | Provider | Needs proxy? | Vision | Setup guide
|
|
23
|
-
| --------------------------- | --------- | ---------------------- | ------------ |
|
|
24
|
-
| **MiMo V2.5** | Xiaomi | Optional (recommended) | ✅ | [Setup](docs/models/mimo.md)
|
|
25
|
-
| **MiMo V2.5 Pro** | Xiaomi | Optional (recommended) | ❌ | [Setup](docs/models/mimo.md)
|
|
26
|
-
| **Kimi K2.7 Code / K2.6** | Moonshot | **Yes** | ✅ | [Setup](docs/models/kimi.md)
|
|
27
|
-
| **Qwen 3.7 Plus** | DashScope | Optional (recommended) | ✅ | [Setup](docs/models/qwen.md)
|
|
28
|
-
| **Qwen 3.7 Max** | DashScope | Optional (recommended) | ❌ | [Setup](docs/models/qwen.md)
|
|
29
|
-
| **MiniMax M3** | MiniMax | No | ✅ | [Setup](docs/models/minimax.md)
|
|
30
|
-
| **GLM 5.2** | Z.ai | No | ❌ | [Setup](docs/models/glm.md)
|
|
31
|
-
| **GLM 5.1** | Z.ai | No | ❌ | [Setup](docs/models/glm.md)
|
|
32
|
-
| **GLM 5V Turbo** | Z.ai | No | ✅ | [Setup](docs/models/glm.md)
|
|
33
|
-
| **DeepSeek V4 Pro / Flash** | DeepSeek | No (uses an extension) | ✅ via proxy | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot)
|
|
22
|
+
| Model | Provider | Needs proxy? | Vision | Setup guide |
|
|
23
|
+
| --------------------------- | --------- | ---------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| **MiMo V2.5** | Xiaomi | Optional (recommended) | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Setup](docs/models/mimo.md) |
|
|
25
|
+
| **MiMo V2.5 Pro** | Xiaomi | Optional (recommended) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Setup](docs/models/mimo.md) |
|
|
26
|
+
| **Kimi K2.7 Code / K2.6** | Moonshot | **Yes** | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=DenizhanDaklr.kimi-lm-provider) ★ / [Setup](docs/models/kimi.md) |
|
|
27
|
+
| **Qwen 3.7 Plus** | DashScope | Optional (recommended) | ✅ | [Setup](docs/models/qwen.md) |
|
|
28
|
+
| **Qwen 3.7 Max** | DashScope | Optional (recommended) | ❌ | [Setup](docs/models/qwen.md) |
|
|
29
|
+
| **MiniMax M3** | MiniMax | No | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=klarkxy.minimax-vscode-copilot) ★ / [Setup](docs/models/minimax.md) |
|
|
30
|
+
| **GLM 5.2** | Z.ai | No | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=ikaros.glm-for-vscode-copilot) ★ / [Setup](docs/models/glm.md) |
|
|
31
|
+
| **GLM 5.1** | Z.ai | No | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=yijiazhen-qi.glm-for-github-copilot-chat) ★ / [Setup](docs/models/glm.md) |
|
|
32
|
+
| **GLM 5V Turbo** | Z.ai | No | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=ikaros.glm-for-vscode-copilot) ★ / [Setup](docs/models/glm.md) |
|
|
33
|
+
| **DeepSeek V4 Pro / Flash** | DeepSeek | No (uses an extension) | ✅ via proxy | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) |
|
|
34
34
|
|
|
35
35
|
## Setup
|
|
36
36
|
|
|
@@ -135,6 +135,7 @@ For footnotes, sources, and detailed notes (cache behavior, tiered pricing, free
|
|
|
135
135
|
> - Highest intelligence score (44.4) among affordable models
|
|
136
136
|
> - Only ~$0.27/session with vision + 1M context
|
|
137
137
|
> - No local proxy required — works direct
|
|
138
|
+
> - **Use the [MiniMax Copilot extension](https://marketplace.visualstudio.com/items?itemName=klarkxy.minimax-vscode-copilot) for the best experience** (Token Plan subscription required; for PAYG, use the [manual setup](docs/models/minimax.md))
|
|
138
139
|
>
|
|
139
140
|
> **DeepSeek V4 Pro** is a strong backup — nearly identical intelligence (44.3 vs 44.4) and cost (~$0.0068 vs ~$0.0061 per intelligence point), but noticeably faster in practice.
|
|
140
141
|
>
|
package/docs/example-config.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Full example config
|
|
2
2
|
|
|
3
|
-
Here's a complete, real-world `chatLanguageModels.json` that combines **the `customendpoint` providers from the live `chatLanguageModels.json
|
|
3
|
+
Here's a complete, real-world `chatLanguageModels.json` that combines **the `customendpoint` providers from the live `chatLanguageModels.json`**, plus the additional GLM models (`glm-5.2`, `glm-5.1`) that are validated in [docs/models/glm.md](models/glm.md) but not present in every live config. Copy what you need, leave the rest out.
|
|
4
4
|
|
|
5
5
|
> **Note:** The `apiKey` fields are left as empty strings — set them via the **Chat: Manage Language Models** UI (Command Palette → right-click provider group → **Update API Key**). After you set a key via the UI, VS Code replaces the empty string with a `${input:chat.lm.secret.<id>}` secret reference.
|
|
6
6
|
>
|
package/docs/models/glm.md
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
# GLM (Z.ai / Zhipu AI) — VS Code Custom Endpoint Setup Guide
|
|
2
2
|
|
|
3
|
-
> **TL;DR:** GLM works directly with VS Code's custom-endpoint provider — **no proxy needed**. The API is OpenAI Chat Completions compatible at `https://api.z.ai/api/paas/v4/chat/completions`, and Z.ai's default `thinking.clear_thinking: true` quietly strips `reasoning_content` from prior turns, which makes multi-turn tool loops stable even when VS Code doesn't preserve reasoning blocks.
|
|
3
|
+
> **TL;DR:** GLM works directly with VS Code's custom-endpoint provider — **no proxy needed**. The API is OpenAI Chat Completions compatible at `https://api.z.ai/api/paas/v4/chat/completions`, and Z.ai's default `thinking.clear_thinking: true` quietly strips `reasoning_content` from prior turns, which makes multi-turn tool loops stable even when VS Code doesn't preserve reasoning blocks.
|
|
4
|
+
>
|
|
5
|
+
> **Billing:** The PaaS API is **Pay-as-You-Go** (per-token). Z.ai also offers a **Coding Plan** subscription (Lite/Pro/Max, $18–$160/mo), but it uses a **different endpoint** (`/api/coding/paas/v4`) that is **locked to a curated list of coding tools** (Claude Code, Cursor, Cline, etc.) — it **cannot** be used from VS Code custom endpoints. See [Why the GLM Coding Plan is not an option](#why-the-glm-coding-plan-is-not-an-option-for-vs-code).
|
|
6
|
+
>
|
|
7
|
+
> **🆕 GLM VS Code extensions are available.** Three community extensions add reasoning visibility (collapsible thinking blocks), per-model thinking toggles, usage dashboards, and more — all impossible with custom endpoints. Two of them support **Standard API** keys. See the [full comparison](../research/glm-vscode-extension.md) for details:
|
|
8
|
+
>
|
|
9
|
+
> | Extension | Marketplace ID | Standard API | Coding Plan | Key feature |
|
|
10
|
+
> | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | :----------: | :---------: | ----------------------------------- |
|
|
11
|
+
> | **GLM for Copilot** (umbrella22) | [`ikaros.glm-for-vscode-copilot`](https://marketplace.visualstudio.com/items?itemName=ikaros.glm-for-vscode-copilot) | ✅ | ✅ | Vision proxy, cost est., team mode |
|
|
12
|
+
> | **GLM Models for Copilot** (KiwiGaze) | [`yijiazhen-qi.glm-for-github-copilot-chat`](https://marketplace.visualstudio.com/items?itemName=yijiazhen-qi.glm-for-github-copilot-chat) | ✅ | ✅ | Quota dashboard, dual API |
|
|
13
|
+
> | **GLM Chat Provider** (zelosleone) | _(pending)_ | ❌ | ✅ | 14 models, per-model thinking tiers |
|
|
4
14
|
|
|
5
15
|
## At a Glance
|
|
6
16
|
|
|
7
|
-
| Field | Value
|
|
8
|
-
| ---------------------- |
|
|
9
|
-
| Mode | **Direct** (no proxy)
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
| Endpoint (
|
|
17
|
-
|
|
|
17
|
+
| Field | Value |
|
|
18
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
19
|
+
| Mode | **Direct** (no proxy) |
|
|
20
|
+
| Billing | **Pay-as-You-Go** (PaaS API) — Coding Plan subscription exists but is **not usable** from VS Code custom endpoints |
|
|
21
|
+
| Vision | ✅ Yes (`glm-5v-turbo` only) |
|
|
22
|
+
| Tool calling | ✅ Yes (native multimodal tool use on `glm-5v-turbo`) |
|
|
23
|
+
| Context (flagship) | 1M (`glm-5.2` Solid Lossless Context) |
|
|
24
|
+
| Max output (flagship) | 131072 |
|
|
25
|
+
| Required `requestBody` | `thinking: { type: "enabled" }` (recommended) |
|
|
26
|
+
| Endpoint (intl) | `https://api.z.ai/api/paas/v4/chat/completions` |
|
|
27
|
+
| Endpoint (China) | `https://open.bigmodel.cn/api/paas/v4/chat/completions` |
|
|
28
|
+
| Auth | `Authorization: Bearer $ZAI_API_KEY` |
|
|
18
29
|
|
|
19
30
|
### Models at a glance
|
|
20
31
|
|
|
@@ -57,7 +68,7 @@ Modify your configuration:
|
|
|
57
68
|
"models": [
|
|
58
69
|
{
|
|
59
70
|
"id": "glm-5.2",
|
|
60
|
-
"name": "GLM 5.2 (
|
|
71
|
+
"name": "GLM 5.2 (text)",
|
|
61
72
|
"url": "https://api.z.ai/api/paas/v4/chat/completions",
|
|
62
73
|
"toolCalling": true,
|
|
63
74
|
"vision": false,
|
package/docs/models/kimi.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# Kimi — VS Code Custom Endpoint Setup Guide
|
|
2
2
|
|
|
3
3
|
> **TL;DR:** Kimi models require the local proxy. The K2 family locks `temperature: 1` and `top_p: 0.95`. K2.6 requires `thinking: { type: "disabled" }` on tool turns; **K2.7 Code is always-thinking and rejects `thinking: disabled`**, so the proxy detects `kimi-k2.7*` and skips that rewrite while keeping sampling enforcement. Direct VS Code → Moonshot integration is not viable in this environment.
|
|
4
|
+
>
|
|
5
|
+
> **🆕 Alternative: Kimi VS Code extension.** If you're on the **Kimi Coding tier** (`kimi.com/code/console`), try the [**Moonshot LM Provider**](https://marketplace.visualstudio.com/items?itemName=DenizhanDaklr.kimi-lm-provider) extension — it offers zero-proxy setup, reasoning visibility via `LanguageModelThinkingPart`, prompt caching, and a simpler install. **Not compatible with Pay-as-You-Go** keys from `platform.kimi.ai`. See the [full comparison](../research/kimi-vscode-extension.md).
|
|
4
6
|
|
|
5
7
|
## At a Glance
|
|
6
8
|
|
|
7
9
|
| Field | Value |
|
|
8
10
|
| ----------------- | --------------------------------------------- |
|
|
9
11
|
| Mode | **Proxy required** (local on `:3457`) |
|
|
12
|
+
| Billing | **Pay-as-You-Go only** — no subscription |
|
|
10
13
|
| Vision | ✅ Yes |
|
|
11
14
|
| Tool calling | ✅ Yes |
|
|
12
15
|
| Upstream endpoint | `https://api.moonshot.ai/v1/chat/completions` |
|
|
@@ -108,12 +111,14 @@ Config file location:
|
|
|
108
111
|
|
|
109
112
|
### 2. API key
|
|
110
113
|
|
|
114
|
+
Kimi is **Pay-as-You-Go only** — there is no monthly subscription or Token Plan alternative. A single Open Platform API key covers all models. Recharge your balance at `platform.kimi.ai/console`.
|
|
115
|
+
|
|
111
116
|
1. Open the Command Palette (`Ctrl+Shift+P`).
|
|
112
117
|
2. Run **Chat: Manage Language Models**.
|
|
113
118
|
3. Find the **Kimi** group → **Update API Key**.
|
|
114
|
-
4. Paste your Moonshot API key.
|
|
119
|
+
4. Paste your Moonshot / Kimi Platform API key.
|
|
115
120
|
|
|
116
|
-
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference.
|
|
121
|
+
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference. The Kimi Platform (formerly Moonshot) rebranded to `platform.kimi.ai` in 2026 — the `api.moonshot.ai` upstream endpoint still resolves and the proxy targets it unchanged.
|
|
117
122
|
|
|
118
123
|
### 3. Local proxy
|
|
119
124
|
|
package/docs/models/mimo.md
CHANGED
|
@@ -1,41 +1,74 @@
|
|
|
1
|
-
# Xiaomi MiMo — VS Code
|
|
1
|
+
# Xiaomi MiMo — VS Code Copilot Chat Setup Guide
|
|
2
2
|
|
|
3
|
-
> **TL;DR:**
|
|
3
|
+
> **TL;DR:** The **recommended** way to use MiMo with Copilot Chat is the [Xiaomi MiMo for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) VS Code extension — it supports thinking mode WITH tool calling, prompt caching feedback, reasoning visibility in agent mode, and token usage reporting, all with zero dependencies (no proxy server needed). Two alternative methods are documented below for users who prefer direct `chatLanguageModels.json` control: direct API with static `thinking: disabled`, or via `proxy/mimo-proxy.mjs` for dynamic thinking suppression.
|
|
4
4
|
>
|
|
5
5
|
> **June 2026 provider notice:** Xiaomi says the legacy ids `mimo-v2-pro` and `mimo-v2-omni` have already been auto-switched to V2.5 replacements and billed at V2.5-series pricing. Xiaomi's same notice also retires an older legacy chat alias and the `mimo-v2-tts` alias. Requests that still use retired legacy aliases are scheduled to start failing after **2026-06-30 00:00 Beijing time**. This guide now documents only the current V2.5 chat ids.
|
|
6
6
|
|
|
7
7
|
## At a Glance
|
|
8
8
|
|
|
9
|
-
| Field | Value
|
|
10
|
-
| ---------------------- |
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
9
|
+
| Field | Value |
|
|
10
|
+
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| **Recommended method** | **[Xiaomi MiMo for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot)** VS Code extension |
|
|
12
|
+
| Alternative methods | Direct API (static `thinking: disabled`) or `proxy/mimo-proxy.mjs` (dynamic suppression) |
|
|
13
|
+
| Vision | ✅ Yes (`mimo-v2.5` only) |
|
|
14
|
+
| Tool calling | ✅ Yes (with thinking disabled, OR thinking enabled via the extension's reasoning cache) |
|
|
15
|
+
| Context | 917K (extension) / 1M (custom endpoint) |
|
|
16
|
+
| Max output | 131072 (UltraSpeed / V2.5 Pro) / 32768 (V2.5) |
|
|
17
|
+
| Dependencies | Extension: **none**. Proxy method: Node.js + `proxy/mimo-proxy.mjs` |
|
|
18
18
|
|
|
19
19
|
### Models at a glance
|
|
20
20
|
|
|
21
|
-
| Model
|
|
22
|
-
|
|
|
23
|
-
| `mimo-v2.5-pro` | ❌ |
|
|
24
|
-
| `mimo-v2.5`
|
|
21
|
+
| Model | Vision | Context | Role |
|
|
22
|
+
| -------------------------- | ------ | ------- | ---------------------------------------------------- |
|
|
23
|
+
| `mimo-v2.5-pro-ultraspeed` | ❌ | 917K | Fast Pro reasoning for latency-sensitive agent tasks |
|
|
24
|
+
| `mimo-v2.5-pro` | ❌ | 917K | Flagship text-only — best for deep reasoning |
|
|
25
|
+
| `mimo-v2.5` | ✅ | 917K | Omnimodal — text + image + video + audio |
|
|
25
26
|
|
|
27
|
+
> **Note:** `mimo-v2.5-pro-ultraspeed` is only available through the VS Code extension. The custom-endpoint methods below only cover `mimo-v2.5-pro` and `mimo-v2.5`.
|
|
28
|
+
>
|
|
26
29
|
> Official June 2026 notice: legacy pre-V2.5 chat aliases now auto-route to V2.5 replacements and become invalid after **2026-06-30 00:00 Beijing time**. This guide intentionally omits retired alias names so new configs only show supported ids.
|
|
27
30
|
|
|
28
31
|
## Quick Start
|
|
29
32
|
|
|
30
|
-
###
|
|
33
|
+
### Recommended: VS Code Extension
|
|
34
|
+
|
|
35
|
+
The [Xiaomi MiMo for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) extension is the easiest and most capable way to use MiMo with Copilot Chat:
|
|
36
|
+
|
|
37
|
+
1. **Install** from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot).
|
|
38
|
+
2. **Set your API key** — run **MiMo: Set API Key** from the Command Palette (`Ctrl+Shift+P`).
|
|
39
|
+
3. **Pick a model** — open Copilot Chat, click the model picker, and choose **MiMo-V2.5-Pro-UltraSpeed**, **MiMo V2.5 Pro**, or **MiMo V2.5**.
|
|
40
|
+
4. That's it — chat away.
|
|
41
|
+
|
|
42
|
+
**Why the extension over custom endpoints:**
|
|
43
|
+
|
|
44
|
+
| Capability | Extension | Custom Endpoint |
|
|
45
|
+
| -------------------------------- | ------------------------------------ | -------------------------------------- |
|
|
46
|
+
| Thinking + tool calling together | ✅ Yes (reasoning cache) | ❌ Must disable thinking on tool turns |
|
|
47
|
+
| Reasoning visible in agent mode | ✅ Yes (`LanguageModelThinkingPart`) | ❌ Hidden (suppressed by proxy) |
|
|
48
|
+
| Prompt caching feedback loop | ✅ 97–99% cache hit rates | ❌ No cache awareness |
|
|
49
|
+
| Token usage in context widget | ✅ Yes | ❌ No |
|
|
50
|
+
| `mimo-v2.5-pro-ultraspeed` model | ✅ Yes | ❌ Not available |
|
|
51
|
+
| Multi-region endpoint selector | ✅ Built-in dropdown | ❌ Manual JSON edits |
|
|
52
|
+
| Dependencies | ✅ Zero (VS Code + Node built-ins) | ❌ Requires proxy server |
|
|
53
|
+
| API key validation | ✅ `sk-` / `tp-` prefix check | ❌ Generic secret input |
|
|
54
|
+
|
|
55
|
+
> **Prerequisites:** VS Code 1.116+, GitHub Copilot subscription (Free tier works), and a MiMo API key from [platform.xiaomimimo.com](https://platform.xiaomimimo.com/console/api-keys). The extension is MIT-licensed. Source: [Sdcb/xiaomimimo-for-copilot](https://github.com/Sdcb/xiaomimimo-for-copilot).
|
|
31
56
|
|
|
32
|
-
|
|
57
|
+
The extension exposes models as a proper `LanguageModelChatProvider` (vendor `'mimo'`), so they appear directly in the Copilot Chat model picker alongside GPT-4o, Claude, and friends. Switch models mid-chat without losing history.
|
|
58
|
+
|
|
59
|
+
For a detailed comparison of extension vs. custom-endpoint features, see [docs/research/mimo-improvements.md](../research/mimo-improvements.md).
|
|
60
|
+
|
|
61
|
+
### Alternative: Direct API (static `thinking: disabled`)
|
|
62
|
+
|
|
63
|
+
Simplest no-proxy approach — but thinking is always off, so you never see model reasoning.
|
|
64
|
+
|
|
65
|
+
1. **Edit `chatLanguageModels.json`** — add the MiMo block(s) from [Setup → Direct](#direct-static-thinking-disabled) below.
|
|
33
66
|
2. **Set your `MIMO_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
34
67
|
3. **Restart VS Code** and pick "MiMo V2.5 Pro" or "MiMo V2.5".
|
|
35
68
|
|
|
36
|
-
### With optional proxy (dynamic thinking)
|
|
69
|
+
### Alternative: With optional proxy (dynamic thinking)
|
|
37
70
|
|
|
38
|
-
The `proxy/mimo-proxy.mjs` provides dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked.
|
|
71
|
+
The `proxy/mimo-proxy.mjs` provides dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked. A middle ground — you see reasoning in chat but not during agent mode.
|
|
39
72
|
|
|
40
73
|
- `npm run proxy:mimo` (from the repo root)
|
|
41
74
|
- `npx copilot-custom-endpoint mimo` (standalone, no clone needed)
|
|
@@ -46,7 +79,24 @@ When using the proxy, update your model URLs to `http://127.0.0.1:3459/v1/chat/c
|
|
|
46
79
|
|
|
47
80
|
## Setup
|
|
48
81
|
|
|
49
|
-
###
|
|
82
|
+
### Recommended: VS Code Extension
|
|
83
|
+
|
|
84
|
+
1. Install from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot).
|
|
85
|
+
2. Run **MiMo: Set API Key** from the Command Palette.
|
|
86
|
+
3. (Optional) Run **MiMo: Open Settings** to configure endpoint region, max tokens, or model ID overrides.
|
|
87
|
+
|
|
88
|
+
**Extension settings:**
|
|
89
|
+
|
|
90
|
+
| Setting | Default | Description |
|
|
91
|
+
| ------------------------------- | ------------------------------- | -------------------------------------------------------- |
|
|
92
|
+
| `mimo-copilot.baseUrl` | `https://api.xiaomimimo.com/v1` | API endpoint — select a preset or pick 'Custom Endpoint' |
|
|
93
|
+
| `mimo-copilot.customBaseUrl` | _(empty)_ | Custom endpoint URL when baseUrl is 'Custom Endpoint' |
|
|
94
|
+
| `mimo-copilot.maxTokens` | `0` | Max output tokens (`0` = API default, capped at 131072) |
|
|
95
|
+
| `mimo-copilot.modelIdOverrides` | `{}` | Override API model IDs for third-party proxies |
|
|
96
|
+
|
|
97
|
+
The extension stores your API key in VS Code's `SecretStorage` (OS keychain) — never in `settings.json`, never in Git history.
|
|
98
|
+
|
|
99
|
+
### Alternative: Custom Endpoint (direct or proxy)
|
|
50
100
|
|
|
51
101
|
Config file location:
|
|
52
102
|
|
|
@@ -140,7 +190,7 @@ Config file location:
|
|
|
140
190
|
}
|
|
141
191
|
```
|
|
142
192
|
|
|
143
|
-
###
|
|
193
|
+
### 1. API key (custom endpoint only)
|
|
144
194
|
|
|
145
195
|
1. Open the Command Palette (`Ctrl+Shift+P`).
|
|
146
196
|
2. Run **Chat: Manage Language Models**.
|
|
@@ -148,19 +198,26 @@ Config file location:
|
|
|
148
198
|
4. Paste your MiMo API key.
|
|
149
199
|
|
|
150
200
|
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference.
|
|
201
|
+
>
|
|
202
|
+
> The extension uses its own **MiMo: Set API Key** command instead — skip this step if using the extension.
|
|
151
203
|
|
|
152
|
-
###
|
|
204
|
+
### 2. Token Plan (optional, all methods)
|
|
153
205
|
|
|
154
|
-
Token Plan subscribers use different base URLs and `tp-` prefixed keys
|
|
206
|
+
Token Plan subscribers use different base URLs and `tp-` prefixed keys from the pay-as-you-go `sk-` keys. The **model id** (`mimo-v2.5-pro`, `mimo-v2.5`) and **`requestBody`** (thinking, temperature, top_p) are the **same** for both billing modes — only the URL and key prefix differ.
|
|
155
207
|
|
|
156
|
-
|
|
|
208
|
+
| Mode | Key prefix | Base URL (OpenAI) |
|
|
209
|
+
| ------------- | ---------- | ----------------------------------------- |
|
|
210
|
+
| Pay-as-you-go | `sk-…` | `https://api.xiaomimimo.com/v1` |
|
|
211
|
+
| Token Plan | `tp-…` | `https://token-plan-cn.xiaomimimo.com/v1` |
|
|
212
|
+
|
|
213
|
+
| Protocol | Base URL (Token Plan) |
|
|
157
214
|
| --------- | ------------------------------------------------ |
|
|
158
215
|
| OpenAI | `https://token-plan-cn.xiaomimimo.com/v1` |
|
|
159
216
|
| Anthropic | `https://token-plan-cn.xiaomimimo.com/anthropic` |
|
|
160
217
|
|
|
161
|
-
>
|
|
218
|
+
> The extension has a built-in multi-region endpoint selector covering all Token Plan regions (China, Singapore, Amsterdam). With the custom endpoint method, update the `url` in `chatLanguageModels.json` and swap the key — the rest of the config stays as-is. Note that the Token Plan endpoint is `token-plan-cn.xiaomimimo.com` (China-hosted), which differs from the PAYG endpoint `api.xiaomimimo.com`.
|
|
162
219
|
|
|
163
|
-
###
|
|
220
|
+
### 3. Legacy id retirement schedule (all methods)
|
|
164
221
|
|
|
165
222
|
From Xiaomi's June 2026 deprecation notice:
|
|
166
223
|
|
|
@@ -211,13 +268,13 @@ When thinking is enabled, responses include a `reasoning_content` field alongsid
|
|
|
211
268
|
|
|
212
269
|
## Troubleshooting
|
|
213
270
|
|
|
214
|
-
| Symptom | Likely cause | Fix
|
|
215
|
-
| ------------------------------------------ | -------------------------------------------------------- |
|
|
216
|
-
| HTTP 400 on the second turn of a tool loop | `reasoning_content` missing in history (thinking on) |
|
|
217
|
-
| Vision request returns an error | Used `mimo-v2.5-pro` (text-only) | Use `mimo-v2.5` for vision
|
|
218
|
-
| Custom `tool_choice` ignored | MiMo only honors `"auto"` | Stick to `auto`
|
|
219
|
-
| 401 Unauthorized | Wrong key, or Token Plan URL used with pay-as-you-go key | Match key prefix (`sk-` vs `tp-`) to the endpoint
|
|
220
|
-
| 429 rate-limited | Concurrent sessions exceeded 100 RPM / 10M TPM | Reduce concurrent agent sessions
|
|
271
|
+
| Symptom | Likely cause | Fix |
|
|
272
|
+
| ------------------------------------------ | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
273
|
+
| HTTP 400 on the second turn of a tool loop | `reasoning_content` missing in history (thinking on) | **Use the extension** (it caches reasoning per tool-call ID). Or: add `thinking: { type: "disabled" }` to `requestBody`, or use the proxy (`npm run proxy:mimo`) |
|
|
274
|
+
| Vision request returns an error | Used `mimo-v2.5-pro` (text-only) | Use `mimo-v2.5` for vision |
|
|
275
|
+
| Custom `tool_choice` ignored | MiMo only honors `"auto"` | Stick to `auto` |
|
|
276
|
+
| 401 Unauthorized | Wrong key, or Token Plan URL used with pay-as-you-go key | Match key prefix (`sk-` vs `tp-`) to the endpoint |
|
|
277
|
+
| 429 rate-limited | Concurrent sessions exceeded 100 RPM / 10M TPM | Reduce concurrent agent sessions |
|
|
221
278
|
|
|
222
279
|
## Pricing
|
|
223
280
|
|
|
@@ -244,10 +301,20 @@ This is the same class of problem as Qwen's `reasoning_content` issue, but **str
|
|
|
244
301
|
|
|
245
302
|
**Implication for VS Code Copilot:** VS Code's agent mode is unlikely to preserve `reasoning_content` across multi-turn tool loops. Therefore:
|
|
246
303
|
|
|
247
|
-
- **Thinking enabled + tool calling = broken** (400 errors after the first tool round-trip).
|
|
304
|
+
- **Thinking enabled + tool calling = broken** (400 errors after the first tool round-trip) — _unless using the [VS Code extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot), which caches and re-injects `reasoning_content`._
|
|
248
305
|
- **Thinking disabled + tool calling = works** (no `reasoning_content` to preserve).
|
|
249
306
|
- **Thinking enabled + plain chat = works** (no tool calls in history).
|
|
250
307
|
|
|
308
|
+
### Extension solves the `reasoning_content` problem natively
|
|
309
|
+
|
|
310
|
+
The [Xiaomi MiMo for Copilot Chat](https://github.com/Sdcb/xiaomimimo-for-copilot) extension implements a reasoning-content cache that makes thinking mode work WITH tool calling. It:
|
|
311
|
+
|
|
312
|
+
1. Caches `reasoning_content` keyed by `tool_call_id` as the model streams tool calls.
|
|
313
|
+
2. Re-injects cached reasoning into prior assistant messages when reconstructing history for subsequent turns.
|
|
314
|
+
3. Prunes stale entries at conversation start (messages ≤ 2) or via LRU eviction (max 200 entries).
|
|
315
|
+
|
|
316
|
+
This is the single biggest architectural advantage of the extension over the proxy approach. See [docs/research/mimo-improvements.md](../research/mimo-improvements.md) for a full comparison.
|
|
317
|
+
|
|
251
318
|
### Proxy for dynamic thinking suppression
|
|
252
319
|
|
|
253
320
|
A dynamic proxy (`proxy/mimo-proxy.mjs`) is now available — same pattern as `proxy/qwen-proxy.mjs`. It suppresses thinking only when tools are present, letting plain chat show reasoning while keeping tool loops stable.
|
|
@@ -283,13 +350,13 @@ External API checks (curl):
|
|
|
283
350
|
|
|
284
351
|
### Known risks
|
|
285
352
|
|
|
286
|
-
| Risk | Detail | Mitigation
|
|
287
|
-
| ------------------------------------- | ------------------------------------------------------------------ |
|
|
288
|
-
| `reasoning_content` 400 errors | If thinking is accidentally enabled in tool loops, API returns 400 |
|
|
289
|
-
| `tool_choice` only supports `"auto"` | Non-`auto` values are stripped | Should not affect VS Code, which uses `auto`
|
|
290
|
-
| Auth header format | Both `api-key:` and `Authorization: Bearer` work | VS Code sends `Authorization: Bearer` — works directly
|
|
291
|
-
| `temperature` locked in thinking mode | V2.5 Pro / V2.5 force `temperature: 1.0` when thinking is on | Not an issue when thinking is disabled
|
|
292
|
-
| 1M context window | VS Code may not send enough tokens to benefit | Set conservatively; adjust after testing
|
|
353
|
+
| Risk | Detail | Mitigation |
|
|
354
|
+
| ------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
355
|
+
| `reasoning_content` 400 errors | If thinking is accidentally enabled in tool loops, API returns 400 | **Use the extension** (solves natively). Or: set `thinking.type: "disabled"` in `requestBody` (direct), or use the proxy |
|
|
356
|
+
| `tool_choice` only supports `"auto"` | Non-`auto` values are stripped | Should not affect VS Code, which uses `auto` |
|
|
357
|
+
| Auth header format | Both `api-key:` and `Authorization: Bearer` work | VS Code sends `Authorization: Bearer` — works directly |
|
|
358
|
+
| `temperature` locked in thinking mode | V2.5 Pro / V2.5 force `temperature: 1.0` when thinking is on | Not an issue when thinking is disabled |
|
|
359
|
+
| 1M context window | VS Code may not send enough tokens to benefit | Set conservatively; adjust after testing |
|
|
293
360
|
|
|
294
361
|
## References
|
|
295
362
|
|
package/docs/models/minimax.md
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
# MiniMax — VS Code Custom Endpoint Setup Guide
|
|
2
2
|
|
|
3
3
|
> **TL;DR:** MiniMax-M3 works directly — no proxy needed. Use `thinking: { type: "adaptive" }` + `reasoning_split: true` in `requestBody` so the model can reason and the response arrives in a clean OpenAI format (`reasoning_details` field, separate from `content`). **Important:** `thinking: { type: "disabled" }` is **not** a hard override — the model still reasons internally and emits `<think>` tags / `reasoning_content` regardless.
|
|
4
|
+
>
|
|
5
|
+
> The same `url`, `model id`, and `requestBody` work for **both** Pay-as-You-Go (account-balance billing) and Token Plan (monthly/annual subscription) — only the API key in the secret field changes. See [API key source](#3-api-key-source) below.
|
|
6
|
+
|
|
7
|
+
> **🆕 Try the MiniMax Copilot extension first.** If you have a **Token Plan subscription** (`sk-cp-…` key), use the [**MiniMax Copilot** VS Code extension](https://marketplace.visualstudio.com/items?itemName=klarkxy.minimax-vscode-copilot) instead — it gives you reasoning visibility, a usage dashboard, status-bar quota monitoring, one-click region switching, and M3 1M context toggling. Install → `MiniMax: Add API Key` → done. No JSON editing.
|
|
8
|
+
>
|
|
9
|
+
> **PAYG users:** the extension targets the Anthropic-compatible endpoint which requires a Token Plan subscription key. If you're on pay-as-you-go, use the manual setup below — it works with both PAYG and Token Plan keys on the OpenAI-compatible endpoint.
|
|
4
10
|
|
|
5
11
|
## At a Glance
|
|
6
12
|
|
|
7
|
-
| Field | Value
|
|
8
|
-
| ------------------------ |
|
|
9
|
-
| Mode | **Direct** (no proxy)
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
| Endpoint (
|
|
13
|
+
| Field | Value |
|
|
14
|
+
| ------------------------ | ------------------------------------------------------------------------ |
|
|
15
|
+
| Mode | **Direct** (no proxy) |
|
|
16
|
+
| Billing | **Pay-as-You-Go** _or_ **Token Plan subscription** (same config) |
|
|
17
|
+
| Vision | ✅ Yes (image + video) |
|
|
18
|
+
| Tool calling | ✅ Yes |
|
|
19
|
+
| Context | 1M (guaranteed 512K) |
|
|
20
|
+
| Max output | 131072 |
|
|
21
|
+
| Required `requestBody` | `thinking: { type: "adaptive" }, reasoning_split: true` |
|
|
22
|
+
| Endpoint (international) | `https://api.minimax.io/v1/chat/completions` |
|
|
23
|
+
| Endpoint (China) | `https://api.minimaxi.com/v1/chat/completions` |
|
|
24
|
+
| API key (PAYG) | Open Platform API Key from `user-center/basic-information/interface-key` |
|
|
25
|
+
| API key (Token Plan) | **Subscription Key** (`sk-cp-…`) from `user-center/payment/token-plan` |
|
|
17
26
|
|
|
18
27
|
## Quick Start
|
|
19
28
|
|
|
@@ -60,23 +69,48 @@ Config file location:
|
|
|
60
69
|
}
|
|
61
70
|
```
|
|
62
71
|
|
|
63
|
-
### 2.
|
|
72
|
+
### 2. Select your billing mode
|
|
73
|
+
|
|
74
|
+
MiniMax exposes the **same** `https://api.minimax.io/v1/chat/completions` endpoint and the **same** `MiniMax-M3` model id to both billing modes. The only field that changes is the API key — the rest of `chatLanguageModels.json` stays identical.
|
|
75
|
+
|
|
76
|
+
| Billing mode | Key name in console | Where to get it | How usage is metered |
|
|
77
|
+
| ------------- | --------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------- |
|
|
78
|
+
| Pay-as-You-Go | **Open Platform API Key** | `platform.minimax.io/user-center/basic-information/interface-key` | Per-token, deducted from your account balance |
|
|
79
|
+
| Token Plan | **Subscription Key** (prefix `sk-cp-…`) | `platform.minimax.io/user-center/payment/token-plan` | Monthly quota (5-hour rolling + weekly windows) |
|
|
80
|
+
|
|
81
|
+
The two keys are **not interchangeable** — a Subscription Key against a PAYG-only endpoint or a PAYG key against the Token Plan quota will be rejected. The Token Plan docs are explicit: _"Subscription Keys are separate from standard pay-as-you-go API Keys."_ ([FAQ](https://platform.minimax.io/docs/token-plan/faq#api-key-interchangeable))
|
|
82
|
+
|
|
83
|
+
### 3. API key source
|
|
84
|
+
|
|
85
|
+
#### Option A — Pay-as-You-Go key
|
|
64
86
|
|
|
65
87
|
1. Open the Command Palette (`Ctrl+Shift+P`).
|
|
66
88
|
2. Run **Chat: Manage Language Models**.
|
|
67
89
|
3. Find the **MiniMax** group → **Update API Key**.
|
|
68
|
-
4. Paste your
|
|
90
|
+
4. Paste your **Open Platform API Key** from `platform.minimax.io/user-center/basic-information/interface-key`.
|
|
69
91
|
|
|
70
92
|
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference.
|
|
71
93
|
|
|
72
|
-
|
|
94
|
+
#### Option B — Token Plan Subscription Key
|
|
95
|
+
|
|
96
|
+
The same `chatLanguageModels.json` block above is reused unchanged. Only the secret stored under `${input:chat.lm.secret.<id>}` is replaced with your Subscription Key.
|
|
97
|
+
|
|
98
|
+
1. Subscribe to a Token Plan (Plus $20 / Max $50 / Ultra $120) at <https://platform.minimax.io/subscribe/token-plan>. Annual billing is also available.
|
|
99
|
+
2. Open `platform.minimax.io/user-center/payment/token-plan` and copy the **Subscription Key** (prefix `sk-cp-…`).
|
|
100
|
+
3. In VS Code, run **Chat: Manage Language Models** → **MiniMax** group → **Update API Key** → paste the Subscription Key.
|
|
101
|
+
|
|
102
|
+
That's it. The endpoint, model id, and `requestBody` stay exactly the same. VS Code's Copilot Chat will now route the same `MiniMax-M3` requests through the Token Plan quota instead of the PAYG balance.
|
|
103
|
+
|
|
104
|
+
> When the Token Plan 5-hour or weekly quota is exhausted, the request fails with a Token Plan quota error (see [Troubleshooting](#troubleshooting)). At that point you can either (a) wait for the quota window to reset, (b) buy a Credits top-up at the same console (Credits use the same Subscription Key and cover eligible overflow), or (c) swap the key in **Chat: Manage Language Models** back to your Open Platform API Key to fall back to PAYG. The URL and `requestBody` do not change during the swap.
|
|
105
|
+
|
|
106
|
+
### 4. Regional endpoints
|
|
73
107
|
|
|
74
108
|
| Region | Endpoint |
|
|
75
109
|
| ------------- | ---------------------------------------------- |
|
|
76
110
|
| International | `https://api.minimax.io/v1/chat/completions` |
|
|
77
111
|
| China | `https://api.minimaxi.com/v1/chat/completions` |
|
|
78
112
|
|
|
79
|
-
> API keys are region-specific and cannot be used across regions.
|
|
113
|
+
> API keys are region-specific and cannot be used across regions. The same PAYG-vs-Token-Plan distinction applies to the China region (`api.minimaxi.com`); Subscription Keys are issued at `platform.minimaxi.com/user-center/payment/token-plan`.
|
|
80
114
|
|
|
81
115
|
## Configuration Reference
|
|
82
116
|
|
|
@@ -130,13 +164,17 @@ MiniMax model IDs are **case-sensitive**. Use exactly:
|
|
|
130
164
|
|
|
131
165
|
## Troubleshooting
|
|
132
166
|
|
|
133
|
-
| Symptom
|
|
134
|
-
|
|
|
135
|
-
| Model not in picker
|
|
136
|
-
| Reasoning leaks into `content`
|
|
137
|
-
| 401 Unauthorized
|
|
138
|
-
|
|
|
139
|
-
|
|
|
167
|
+
| Symptom | Likely cause | Fix |
|
|
168
|
+
| -------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
169
|
+
| Model not in picker | Config not reloaded, or wrong casing | Restart VS Code; verify model ID is exactly `MiniMax-M3` |
|
|
170
|
+
| Reasoning leaks into `content` | Missing `reasoning_split` | Add `reasoning_split: true` to `requestBody` |
|
|
171
|
+
| 401 Unauthorized | API key region mismatch | Use the endpoint that matches your key's region |
|
|
172
|
+
| 401 `token is unusable` / 1004 | Wrong key type on the endpoint — PAYG key against a Token Plan quota or vice versa | The two keys are not interchangeable. Switch the secret in **Chat: Manage Language Models** to the correct key for the billing mode you intend to use. |
|
|
173
|
+
| 402 / 429 after a burst of agent turns | Token Plan 5-hour or weekly quota exhausted; not a PAYG balance issue | Wait for the quota window to reset, buy a Credits top-up at `platform.minimax.io/user-center/payment/credits`, upgrade plan, or swap the secret to a PAYG key to continue. |
|
|
174
|
+
| 429 rate-limited | Concurrent sessions exceeded 200 RPM / 10M TPM | Reduce concurrent agent sessions |
|
|
175
|
+
| Vision request returns 400 | Vision only supported on M3 (not the legacy M2.x line) | Use `MiniMax-M3` |
|
|
176
|
+
| Token Plan key works in curl but not VS Code | VS Code is still resolving the old `${input:chat.lm.secret.<id>}` reference | Re-open **Chat: Manage Language Models**, re-paste the Subscription Key, then restart VS Code |
|
|
177
|
+
| China account gets 401 on `api.minimax.io` | Key region is China but the URL points to international (or vice versa) | Switch the `url` to `https://api.minimaxi.com/v1/chat/completions` for China, and get the Subscription Key from `platform.minimaxi.com` |
|
|
140
178
|
|
|
141
179
|
## Pricing
|
|
142
180
|
|
|
@@ -153,7 +191,19 @@ For the cross-provider comparison, see [docs/pricing.md](../pricing.md). MiniMax
|
|
|
153
191
|
|
|
154
192
|
### Token Plan (subscription)
|
|
155
193
|
|
|
156
|
-
|
|
194
|
+
The Token Plan is a **monthly or annual** subscription with a shared multimodal usage bar (text + image + audio + video + music share one quota). It is the same family of plans the MiniMax integration guide for Cursor, Claude Code, Zed, Kilo Code, and other IDEs targets — and the _same_ `https://api.minimax.io/v1/chat/completions` endpoint with the _same_ `MiniMax-M3` model id is used. The only field that changes between PAYG and Token Plan is the API key in `${input:chat.lm.secret.<id>}`.
|
|
195
|
+
|
|
196
|
+
| Tier | Price | Best for | Quota window | Typical agent capacity |
|
|
197
|
+
| ----- | --------- | -------------------------------------------- | ----------------------- | ---------------------- |
|
|
198
|
+
| Plus | $20 / mo | Personal projects, prototyping | 5-hour rolling + weekly | 3–4 agents |
|
|
199
|
+
| Max | $50 / mo | Daily coding with agents and multimodal work | 5-hour rolling + weekly | 4–5 agents |
|
|
200
|
+
| Ultra | $120 / mo | Heavy agent workflows and extended sessions | 5-hour rolling + weekly | 6–7 agents |
|
|
201
|
+
|
|
202
|
+
Annual billing is available; unused subscription quota does **not** roll over to the next cycle. Credits are sold separately (`$5` = 5,000 / `$25` = 25,000 / `$100` = 100,000; 365-day validity) and use the same Subscription Key — when the included Token Plan quota is exhausted, purchased Credits automatically cover eligible overflow within Token Plan resource coverage. Subscription quota is consumed first, Credits second.
|
|
203
|
+
|
|
204
|
+
> The Token Plan is intended for **individual, interactive developer use**, not production. MiniMax recommends PAYG for production workloads. Peak-hour dynamic rate-limiting may apply (typically 15:00–17:30 weekdays, per the [Token Plan platform-traffic rules](https://platform.minimax.io/docs/token-plan/faq#token-plan-limit-rules)). For background, see the [Token Plan overview](https://platform.minimax.io/docs/token-plan/intro) and the [subscription pricing page](https://platform.minimax.io/docs/guides/pricing-token-plan).
|
|
205
|
+
>
|
|
206
|
+
> **Source for the same-config claim:** the Token Plan docs show `https://api.minimax.io/v1` + model id `MiniMax-M3` for the OpenAI-compatible path and `https://api.minimax.io/anthropic` for the Anthropic-compatible path, with the same request body fields the PAYG path uses — see [Other Tools › Configuration Reference](https://platform.minimax.io/docs/token-plan/other-tools#configuration-reference). The FAQ explicitly says: _"Can the Subscription Key and the standard Open Platform API Key be used interchangeably? No, they cannot."_ — the **keys are not swappable, but the endpoint, model id, and `requestBody` are.**
|
|
157
207
|
|
|
158
208
|
---
|
|
159
209
|
|
|
@@ -243,5 +293,9 @@ Asked the model to inspect a YouTube video (`https://www.youtube.com/watch?v=rAz
|
|
|
243
293
|
- MiniMax Pricing: `https://platform.minimax.io/docs/pricing/overview`
|
|
244
294
|
- MiniMax Pay as You Go: `https://platform.minimax.io/docs/guides/pricing-paygo`
|
|
245
295
|
- MiniMax Token Plan: `https://platform.minimax.io/docs/guides/pricing-token-plan`
|
|
296
|
+
- MiniMax Token Plan Overview: `https://platform.minimax.io/docs/token-plan/intro`
|
|
297
|
+
- MiniMax Token Plan Quickstart: `https://platform.minimax.io/docs/token-plan/quickstart`
|
|
298
|
+
- MiniMax Token Plan FAQ (key interchangeability, quota windows, platform limits): `https://platform.minimax.io/docs/token-plan/faq`
|
|
299
|
+
- MiniMax Token Plan — Other Tools configuration reference (same endpoint + model id for PAYG and Token Plan): `https://platform.minimax.io/docs/token-plan/other-tools#configuration-reference`
|
|
246
300
|
- MiniMax Rate Limits: `https://platform.minimax.io/docs/guides/rate-limits`
|
|
247
301
|
- MiniMax M3 for AI Coding Tools: `https://platform.minimax.io/docs/guides/text-ai-coding-tools`
|
package/docs/models/qwen.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| Field | Value |
|
|
8
8
|
| ------------------------------- | -------------------------------------------------------------------------------- |
|
|
9
9
|
| Mode | **Proxy** (local on `:3458`) **or** **Direct** (static `enable_thinking: false`) |
|
|
10
|
+
| Billing | **Pay-as-You-Go only** — no subscription; 1M-token free quota for new users |
|
|
10
11
|
| Vision | ✅ Yes (`qwen3.7-plus`) |
|
|
11
12
|
| Tool calling | ✅ Yes |
|
|
12
13
|
| Context | 1M |
|
|
@@ -182,12 +183,14 @@ The proxy detects active tool use by examining the conversation state, not just
|
|
|
182
183
|
|
|
183
184
|
### API key
|
|
184
185
|
|
|
186
|
+
DashScope is **Pay-as-You-Go only** — there is no monthly subscription plan. However, Alibaba Cloud grants a **free quota** of **1M input + 1M output tokens per model** (valid 90 days) for new Model Studio users. Prepaid token resource packages are also available through the Alibaba Cloud console for discounted rates, but these are prepaid credits, not a subscription.
|
|
187
|
+
|
|
185
188
|
1. Open the Command Palette (`Ctrl+Shift+P`).
|
|
186
189
|
2. Run **Chat: Manage Language Models**.
|
|
187
190
|
3. Find the **Qwen** group → **Update API Key**.
|
|
188
191
|
4. Paste your DashScope API key.
|
|
189
192
|
|
|
190
|
-
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference.
|
|
193
|
+
> After setting via the UI, VS Code replaces `"apiKey": ""` with a `${input:chat.lm.secret.<id>}` reference. API keys are generated at `dashscope-intl.aliyuncs.com` (international) or `dashscope.aliyuncs.com` (China) and are region-specific.
|
|
191
194
|
|
|
192
195
|
## Configuration Reference
|
|
193
196
|
|