copilot-custom-endpoint 1.7.5 → 1.8.0
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 +18 -3
- package/docs/example-config.md +2 -0
- package/docs/models/glm.md +2 -1
- package/docs/models/kimi.md +2 -1
- package/docs/models/mimo.md +2 -1
- package/docs/models/minimax.md +2 -1
- package/docs/models/qwen.md +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,12 +8,13 @@ VS Code lets you add your own language-model endpoint via a small JSON config fi
|
|
|
8
8
|
|
|
9
9
|
If [OpenRouter](https://openrouter.ai) is blocked by your network or too generic for your model's quirks, this is the workaround.
|
|
10
10
|
|
|
11
|
-
## How it works (
|
|
11
|
+
## How it works (5 steps)
|
|
12
12
|
|
|
13
13
|
1. **Pick a model** from the table below.
|
|
14
14
|
2. **Add it to your VS Code config** — copy the snippet from the model's doc.
|
|
15
15
|
3. **Set the API key** through VS Code's UI (it goes to your OS keychain, not the file).
|
|
16
|
-
4. **Open
|
|
16
|
+
4. **Configure the Utility Small Model** — VS Code now requires a fast fallback model for built-in utility flows. Open Settings → search **"Chat: Utility Small Model"** → pick your fastest custom-endpoint model (or "Default" if you have native Copilot models available). Without this, chat may not function correctly.
|
|
17
|
+
5. **Open chat** and pick the model from the model picker.
|
|
17
18
|
|
|
18
19
|
That's it. No code, no servers to manage (unless the model specifically needs the local proxy — the table tells you).
|
|
19
20
|
|
|
@@ -58,7 +59,21 @@ Open the setup guide for the model you picked (links in the table above) and cop
|
|
|
58
59
|
3. Find your provider in the list, right-click the group name → **Update API Key**.
|
|
59
60
|
4. Paste your key. It's stored in your OS keychain.
|
|
60
61
|
|
|
61
|
-
### 4.
|
|
62
|
+
### 4. Configure the Utility Small Model
|
|
63
|
+
|
|
64
|
+
> **⚠️ Required for BYOK/custom-endpoint users.** VS Code's latest update mandates that you explicitly set which model handles built-in small/fast utility flows. Without this, custom-endpoint models may not function correctly in chat or agent mode.
|
|
65
|
+
|
|
66
|
+
1. Open VS Code Settings (`Ctrl+,` / `Cmd+,`).
|
|
67
|
+
2. Search for **"Chat: Utility Small Model"** (setting ID: `chat.lm.utilitySmallModel`).
|
|
68
|
+
3. Pick the **fastest, cheapest model** available to you from the dropdown. Good choices:
|
|
69
|
+
- **DeepSeek V4 Flash** — if you have the [DeepSeek V4 for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) extension installed (fastest, ~$0.10/session).
|
|
70
|
+
- **MiMo V2.5** — if you already have Xiaomi MiMo configured (cheapest custom-endpoint option, ~$0.10/session).
|
|
71
|
+
- **Default** — if you still have native Copilot model access, this lets VS Code use its built-in fast model.
|
|
72
|
+
4. The setting takes effect immediately — no restart needed.
|
|
73
|
+
|
|
74
|
+
> **Why this matters:** VS Code uses a small utility model for quick background tasks (token counting, prompt truncation, lightweight completions). When you switch to custom-endpoint models, the framework still needs a fast model for these utility flows. If left unset, some features may silently degrade or fail.
|
|
75
|
+
|
|
76
|
+
### 5. Chat
|
|
62
77
|
|
|
63
78
|
- Open Copilot chat (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
64
79
|
- Click the model picker (top-right).
|
package/docs/example-config.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
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
|
+
> **⚠️ Reminder:** After adding models, you must also configure the **Utility Small Model** setting in VS Code. Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). Without this, custom-endpoint models may not function correctly. See the [main README](../README.md#4-configure-the-utility-small-model) for details.
|
|
6
|
+
>
|
|
5
7
|
> **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
8
|
>
|
|
7
9
|
> The live config points Qwen at the local proxy (`:3458`) and MiMo at the local proxy (`:3459`). When using a proxy, align the model `requestBody` overrides with the proxy's behavior: Qwen sends no `requestBody` (the proxy manages `enable_thinking` dynamically); MiMo sends only `temperature` and `top_p` (the proxy injects `thinking: {"type": "disabled"}` on tool turns and leaves it absent on plain chat).
|
package/docs/models/glm.md
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
2. **Generate an API key** on the API Keys page of the platform.
|
|
44
44
|
3. **Edit `chatLanguageModels.json`** — add the GLM block below.
|
|
45
45
|
4. **Set the API key** via Command Palette → **Chat: Manage Language Models** → right-click **GLM** → **Update API Key**.
|
|
46
|
-
5. **
|
|
46
|
+
5. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
47
|
+
6. **Restart VS Code** and select a GLM model from the picker.
|
|
47
48
|
|
|
48
49
|
## Setup
|
|
49
50
|
|
package/docs/models/kimi.md
CHANGED
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
1. **Start the proxy** — `npm run proxy:kimi` (or `npx copilot-custom-endpoint kimi` standalone).
|
|
33
33
|
2. **Edit `chatLanguageModels.json`** — add the Kimi block below.
|
|
34
34
|
3. **Set your Moonshot API key** via Command Palette → **Chat: Manage Language Models**.
|
|
35
|
-
4. **
|
|
35
|
+
4. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
36
|
+
5. **Restart VS Code** and pick "Kimi K2.6" or "Kimi K2.7 Code".
|
|
36
37
|
|
|
37
38
|
## Setup
|
|
38
39
|
|
package/docs/models/mimo.md
CHANGED
|
@@ -57,7 +57,8 @@ Simplest no-proxy approach — but thinking is always off, so you never see mode
|
|
|
57
57
|
|
|
58
58
|
1. **Edit `chatLanguageModels.json`** — add the MiMo block(s) below.
|
|
59
59
|
2. **Set your `MIMO_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
60
|
-
3. **
|
|
60
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
61
|
+
4. **Restart VS Code** and pick "MiMo V2.5 Pro" or "MiMo V2.5".
|
|
61
62
|
|
|
62
63
|
### Alternative: With optional proxy (dynamic thinking)
|
|
63
64
|
|
package/docs/models/minimax.md
CHANGED
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
1. **Edit `chatLanguageModels.json`** — add the MiniMax block below.
|
|
40
40
|
2. **Set your `MINIMAX_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
41
|
-
3. **
|
|
41
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
42
|
+
4. **Restart VS Code** and pick "MiniMax M3" in the chat picker.
|
|
42
43
|
|
|
43
44
|
## Setup
|
|
44
45
|
|
package/docs/models/qwen.md
CHANGED
|
@@ -34,13 +34,15 @@
|
|
|
34
34
|
1. **Start the proxy:** `npm run proxy:qwen` (or `npx copilot-custom-endpoint qwen`).
|
|
35
35
|
2. **Use the proxy-path JSON snippet** below.
|
|
36
36
|
3. **Set your DashScope API key** via Command Palette → **Chat: Manage Language Models**.
|
|
37
|
-
4. **
|
|
37
|
+
4. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
38
|
+
5. **Restart VS Code.** Reasoning will be visible in plain chat and suppressed on tool turns.
|
|
38
39
|
|
|
39
40
|
### Direct (no proxy)
|
|
40
41
|
|
|
41
42
|
1. **Use the direct-path JSON snippet** below.
|
|
42
43
|
2. **Set your `DASHSCOPE_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
43
|
-
3. **
|
|
44
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
45
|
+
4. **Restart VS Code** and pick "Qwen 3.7 Plus" or "Qwen 3.7 Max".
|
|
44
46
|
|
|
45
47
|
## Setup
|
|
46
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-custom-endpoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Local proxies for VS Code Copilot custom endpoints — Kimi K2, Qwen 3.x & MiMo V2.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"dotenv": "^17.4.2"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|