copilot-custom-endpoint 2.0.0 → 2.1.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 +4 -0
- package/docs/example-config.md +17 -3
- package/docs/models/qwen.md +33 -9
- package/docs/pricing.md +3 -0
- package/package.json +2 -2
- package/proxy/qwen-proxy.mjs +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@ That's it. No code, no servers to manage (unless the model specifically needs th
|
|
|
27
27
|
| **MiMo V2.5 Pro** | Xiaomi | Optional (recommended) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Manual setup](docs/models/mimo.md) |
|
|
28
28
|
| **Qwen 3.7 Plus** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
|
|
29
29
|
| **Qwen 3.7 Max** | DashScope | Optional (recommended) | ❌ | [Manual setup](docs/models/qwen.md) |
|
|
30
|
+
| **Qwen 3.8 Max** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
|
|
30
31
|
| **MiniMax M3** | MiniMax | No | ✅ | [Extension](https://github.com/tugudush/minimax-copilot) ★ / [Manual setup](docs/models/minimax.md) |
|
|
31
32
|
| **GLM 5.2 / 5.1** | Z.ai | No | ✅ via extension proxy | [Manual setup](docs/models/glm.md) |
|
|
32
33
|
| **GLM 5V Turbo** | Z.ai | No | ✅ | [Manual setup](docs/models/glm.md) |
|
|
@@ -123,6 +124,7 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
|
|
|
123
124
|
| **GLM 5.1** | Z.ai | **~$0.028** | **40.2** | ~$1.14 | ❌ | 200K |
|
|
124
125
|
| **GLM 5V Turbo** | Z.ai | **~$0.029** | **34.0** ³ | ~$1.00 | ✅ | 200K |
|
|
125
126
|
| **Gemini 3.6 Flash** ⁸ | Google | **~$0.030** | **50.0** | ~$1.50 | ✅ | 1M |
|
|
127
|
+
| **Qwen 3.8 Max** ¹⁰ | DashScope | **~$0.030** | **53.4** | ~$1.60 | ✅ | 1M |
|
|
126
128
|
| **Gemini 3.5 Flash** | Google | **~$0.033** | **50.2** | ~$1.65 | ✅ | 1M |
|
|
127
129
|
| **GPT-5.6 Terra** | OpenAI | **~$0.040** | **55.0** | ~$2.20 | ✅ | 1M |
|
|
128
130
|
| **Qwen 3.7 Max** | DashScope | **~$0.043** | **46.0** | ~$2.00 | ❌ | 1M |
|
|
@@ -153,6 +155,8 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
|
|
|
153
155
|
|
|
154
156
|
⁹ **Claude Opus 5** launched July 24, 2026. AA Intelligence Index score of **61.0** (#1 overall) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/claude-opus-5). Priced at $5.00 / $25.00 per MTok input/output (same as Opus 4.8). 1M context, text + image input, adaptive reasoning. Also available in Fast mode ($10/$50 per MTok input/output). Uses the newer Claude tokenizer (~30% more tokens than pre-4.7 models). See [Anthropic's Opus 5 announcement](https://www.anthropic.com/news/claude-opus-5).
|
|
155
157
|
|
|
158
|
+
¹⁰ **Qwen 3.8 Max** (`qwen3.8-max`) has an OpenRouter-reported Artificial Analysis Intelligence Index of **53.4** (Coding **68.9**, Agentic **44.9**). Arena snapshots place it **#5 in Text**, **#2 in Vision**, and **#4 in Code/WebDev**; it is not listed in Agent Arena. See [OpenRouter](https://openrouter.ai/qwen/qwen3.8-max) and [Arena](https://arena.ai/leaderboard).
|
|
159
|
+
|
|
156
160
|
For footnotes, sources, and detailed notes (cache behavior, tiered pricing, free quotas) see [docs/pricing.md](docs/pricing.md). For a copy-paste config containing **all providers at once**, see [docs/example-config.md](docs/example-config.md).
|
|
157
161
|
|
|
158
162
|
> **👤 Personal picks** —
|
package/docs/example-config.md
CHANGED
|
@@ -16,13 +16,25 @@ Here's a complete, real-world `chatLanguageModels.json` that combines **the `cus
|
|
|
16
16
|
"apiKey": "",
|
|
17
17
|
"apiType": "chat-completions",
|
|
18
18
|
"models": [
|
|
19
|
+
{
|
|
20
|
+
"id": "qwen3.8-max",
|
|
21
|
+
"name": "Qwen 3.8 Max (vision)",
|
|
22
|
+
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
23
|
+
"toolCalling": true,
|
|
24
|
+
"vision": true,
|
|
25
|
+
"streaming": true,
|
|
26
|
+
"maxInputTokens": 991000,
|
|
27
|
+
"maxOutputTokens": 131072
|
|
28
|
+
},
|
|
19
29
|
{
|
|
20
30
|
"id": "qwen3.7-max",
|
|
21
31
|
"name": "Qwen 3.7 Max (text)",
|
|
22
32
|
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
23
33
|
"toolCalling": true,
|
|
24
34
|
"vision": false,
|
|
25
|
-
"streaming": true
|
|
35
|
+
"streaming": true,
|
|
36
|
+
"maxInputTokens": 1048576,
|
|
37
|
+
"maxOutputTokens": 131072
|
|
26
38
|
},
|
|
27
39
|
{
|
|
28
40
|
"id": "qwen3.7-plus",
|
|
@@ -30,7 +42,9 @@ Here's a complete, real-world `chatLanguageModels.json` that combines **the `cus
|
|
|
30
42
|
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
31
43
|
"toolCalling": true,
|
|
32
44
|
"vision": true,
|
|
33
|
-
"streaming": true
|
|
45
|
+
"streaming": true,
|
|
46
|
+
"maxInputTokens": 1048576,
|
|
47
|
+
"maxOutputTokens": 131072
|
|
34
48
|
}
|
|
35
49
|
]
|
|
36
50
|
},
|
|
@@ -127,7 +141,7 @@ Here's a complete, real-world `chatLanguageModels.json` that combines **the `cus
|
|
|
127
141
|
"models": [
|
|
128
142
|
{
|
|
129
143
|
"id": "MiniMax-M3",
|
|
130
|
-
"name": "MiniMax M3 (
|
|
144
|
+
"name": "MiniMax M3 (vision)",
|
|
131
145
|
"url": "https://api.minimax.io/v1/chat/completions",
|
|
132
146
|
"toolCalling": true,
|
|
133
147
|
"vision": true,
|
package/docs/models/qwen.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Qwen (DashScope) — VS Code Custom Endpoint Setup Guide
|
|
2
2
|
|
|
3
|
-
> **TL;DR:** `qwen3.7-plus` (vision) and `qwen3.7-max` (text) work both direct and via the local proxy. The proxy gives you dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked. The direct path is simpler if you don't need reasoning in chat.
|
|
3
|
+
> **TL;DR:** `qwen3.8-max` (vision), `qwen3.7-plus` (vision), and `qwen3.7-max` (text) work both direct and via the local proxy. The proxy gives you dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked. The direct path is simpler if you don't need reasoning in chat.
|
|
4
4
|
|
|
5
5
|
## At a Glance
|
|
6
6
|
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
| ---------------------- | -------------------------------------------------------------------------------- |
|
|
9
9
|
| Mode | **Proxy** (local on `:3458`) **or** **Direct** (static `enable_thinking: false`) |
|
|
10
10
|
| Billing | **Pay-as-You-Go only** — 1M-token free quota for new users |
|
|
11
|
-
| Vision | ✅ Yes (`qwen3.7-plus`)
|
|
11
|
+
| Vision | ✅ Yes (`qwen3.8-max`, `qwen3.7-plus`) |
|
|
12
12
|
| Tool calling | ✅ Yes |
|
|
13
13
|
| Context | 1M |
|
|
14
|
-
| Max output |
|
|
14
|
+
| Max output | 131K (`qwen3.8-max`); see Models table for other models |
|
|
15
15
|
| Endpoint | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions` |
|
|
16
16
|
| Proxy endpoint | `http://127.0.0.1:3458/v1/chat/completions` |
|
|
17
17
|
| Auth | `Authorization: Bearer $DASHSCOPE_API_KEY` |
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
### Models
|
|
22
22
|
|
|
23
|
-
| Model | Vision | Context | Max output | Notes
|
|
24
|
-
| -------------- | ------ | ------- | --------------- |
|
|
25
|
-
| `qwen3.
|
|
26
|
-
| `qwen3.7-
|
|
23
|
+
| Model | Vision | Context | Max output | Notes |
|
|
24
|
+
| -------------- | ------ | ------- | --------------- | ------------------------------------------------------- |
|
|
25
|
+
| `qwen3.8-max` | ✅ Yes | 1M | 131K | Frontier multimodal model; reasoning enabled by default |
|
|
26
|
+
| `qwen3.7-plus` | ✅ Yes | 1M | _(unspecified)_ | Primary model with image understanding |
|
|
27
|
+
| `qwen3.7-max` | ❌ No | 1M | _(unspecified)_ | Larger text-only model |
|
|
27
28
|
|
|
28
29
|
> The live `chatLanguageModels.json` points Qwen at the local proxy by default; the direct DashScope URL is shown below for users who prefer a static `enable_thinking: false` setup.
|
|
29
30
|
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
1. **Use the direct-path JSON snippet** below.
|
|
43
44
|
2. **Set your `DASHSCOPE_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
44
45
|
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".
|
|
46
|
+
4. **Restart VS Code** and pick "Qwen 3.8 Max", "Qwen 3.7 Plus", or "Qwen 3.7 Max".
|
|
46
47
|
|
|
47
48
|
## Setup
|
|
48
49
|
|
|
@@ -73,6 +74,17 @@ DashScope is region-specific — your API key only works on the endpoint it was
|
|
|
73
74
|
"apiKey": "",
|
|
74
75
|
"apiType": "chat-completions",
|
|
75
76
|
"models": [
|
|
77
|
+
{
|
|
78
|
+
"id": "qwen3.8-max",
|
|
79
|
+
"name": "Qwen 3.8 Max (vision)",
|
|
80
|
+
"url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
81
|
+
"toolCalling": true,
|
|
82
|
+
"vision": true,
|
|
83
|
+
"streaming": true,
|
|
84
|
+
"maxInputTokens": 991000,
|
|
85
|
+
"maxOutputTokens": 131072,
|
|
86
|
+
"requestBody": { "enable_thinking": false }
|
|
87
|
+
},
|
|
76
88
|
{
|
|
77
89
|
"id": "qwen3.7-max",
|
|
78
90
|
"name": "Qwen 3.7 Max (text)",
|
|
@@ -120,6 +132,16 @@ DashScope is region-specific — your API key only works on the endpoint it was
|
|
|
120
132
|
"apiKey": "",
|
|
121
133
|
"apiType": "chat-completions",
|
|
122
134
|
"models": [
|
|
135
|
+
{
|
|
136
|
+
"id": "qwen3.8-max",
|
|
137
|
+
"name": "Qwen 3.8 Max (vision)",
|
|
138
|
+
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
139
|
+
"toolCalling": true,
|
|
140
|
+
"vision": true,
|
|
141
|
+
"streaming": true,
|
|
142
|
+
"maxInputTokens": 991000,
|
|
143
|
+
"maxOutputTokens": 131072
|
|
144
|
+
},
|
|
123
145
|
{
|
|
124
146
|
"id": "qwen3.7-max",
|
|
125
147
|
"name": "Qwen 3.7 Max (text)",
|
|
@@ -195,7 +217,8 @@ The proxy detects active tool use by examining the conversation state (a `"tool"
|
|
|
195
217
|
|
|
196
218
|
## Notes
|
|
197
219
|
|
|
198
|
-
- **Vision (`qwen3.7-plus`)** uses OpenAI-compatible `content` array format. Base64 data URIs work reliably; external image URLs may fail if DashScope can't reach them. If a drag-and-drop image fails to load, providing the absolute file path (e.g. `c:\path\to\image.png`) in the prompt is a reliable workaround.
|
|
220
|
+
- **Vision (`qwen3.8-max`, `qwen3.7-plus`)** uses OpenAI-compatible `content` array format. Base64 data URIs work reliably; external image URLs may fail if DashScope can't reach them. If a drag-and-drop image fails to load, providing the absolute file path (e.g. `c:\path\to\image.png`) in the prompt is a reliable workaround.
|
|
221
|
+
- **Qwen 3.8 reasoning:** `qwen3.8-max` enables reasoning by default and supports `reasoning_effort` values `low`, `medium`, and `xhigh` (default). The direct snippet disables reasoning for stable VS Code tool loops; the proxy leaves it on for plain chat and suppresses it when tool activity is detected.
|
|
199
222
|
- **Thinking trade-off:** Direct = thinking always off (loops stable, no reasoning visible). Proxy = thinking on in plain chat, off in tool turns.
|
|
200
223
|
- **`tool_choice` only supports `auto`** — don't override it (VS Code's default is `auto`).
|
|
201
224
|
|
|
@@ -216,6 +239,7 @@ For the cross-provider comparison, see [docs/pricing.md](../pricing.md). DashSco
|
|
|
216
239
|
|
|
217
240
|
| Model | Input (≤ 256K tokens) | Input (> 256K tokens) | Output (≤ 256K tokens) | Output (> 256K tokens) |
|
|
218
241
|
| -------------- | --------------------- | --------------------- | ---------------------- | ---------------------- |
|
|
242
|
+
| `qwen3.8-max` | $2.00 | — | $6.00 | — |
|
|
219
243
|
| `qwen3.7-plus` | $0.40 / 1M | $1.20 / 1M | $1.60 / 1M | $4.80 / 1M |
|
|
220
244
|
| `qwen3.7-max` | $2.50 / 1M (≤ 1M) | — | $7.50 / 1M (≤ 1M) | — |
|
|
221
245
|
|
package/docs/pricing.md
CHANGED
|
@@ -39,6 +39,7 @@ All models are listed together below, sorted by Cost per intelligence ascending
|
|
|
39
39
|
| **GLM 5.1** | Z.ai | **~$0.028** | **40.2** | $1.40 | $0.26 | $4.40 | ~$1.14 | 200K |
|
|
40
40
|
| **GLM 5V Turbo** | Z.ai | **~$0.029** | **34.0** ³ | $1.20 | $0.24 | $4.00 | ~$1.00 | 200K |
|
|
41
41
|
| **Gemini 3.6 Flash** ⁹ | Google | **~$0.030** | **50.0** | $1.50 | $0.15 | $7.50 | ~$1.50 | 1M |
|
|
42
|
+
| **Qwen 3.8 Max** ¹¹ | DashScope | **~$0.030** | **53.4** | $2.00 | $0.25 | $6.00 | ~$1.60 | 1M |
|
|
42
43
|
| **Gemini 3.5 Flash** | Google | **~$0.033** | **50.2** | $1.50 | $0.15 | $9.00 | ~$1.65 | 1M |
|
|
43
44
|
| **GPT-5.6 Terra** | OpenAI | **~$0.040** | **55.0** | $2.00 | $0.20 | $12.00 | ~$2.20 | 1M |
|
|
44
45
|
| **Qwen 3.7 Max** | DashScope | **~$0.043** | **46.0** | $2.50 (≤1M) | — | $7.50 (≤1M) | ~$2.00 | 1M |
|
|
@@ -71,6 +72,8 @@ All models are listed together below, sorted by Cost per intelligence ascending
|
|
|
71
72
|
|
|
72
73
|
¹⁰ **Claude Opus 5** was released on **July 24, 2026**. AA Intelligence Index score (**61.0**) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/claude-opus-5). Pricing is $5.00 / $0.50 / $25.00 per MTok input/cached/output (same as Opus 4.8). 1M context window, text + image input, adaptive reasoning. Also available in Fast mode ($10/$50 per MTok input/output) and Batch ($2.50/$12.50 per MTok input/output). Uses the newer Claude tokenizer (~30% more tokens than pre-4.7 models). See [Anthropic's Opus 5 announcement](https://www.anthropic.com/news/claude-opus-5).
|
|
73
74
|
|
|
75
|
+
¹¹ **Qwen 3.8 Max** (`qwen3.8-max`) launched on **August 3, 2026**. Qwen Cloud lists $2.00 input / $6.00 output per 1M tokens, $0.25 implicit-cache input, $2.50 explicit-cache creation, and $0.17 explicit-cache reads. The modeled session cost is ~$1.60 using 10K input + 2K output tokens per turn across 50 turns. It has a 1M context window, 131K maximum output, and text/image/video input. OpenRouter currently reports an Artificial Analysis Intelligence Index of **53.4** for this model. See the [Qwen Cloud model page](https://www.qwencloud.com/models/qwen3.8-max) and [OpenRouter model page](https://openrouter.ai/qwen/qwen3.8-max).
|
|
76
|
+
|
|
74
77
|
Cost per intelligence = estimated session cost ÷ Intelligence Index score. Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns.
|
|
75
78
|
|
|
76
79
|
> **Notes:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-custom-endpoint",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.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
|
+
}
|
package/proxy/qwen-proxy.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { createProxy } from '../lib/create-proxy.mjs'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Supported model scope for this proxy:
|
|
8
|
-
* - Validated with `qwen3.7-plus
|
|
8
|
+
* - Validated with `qwen3.8-max`, `qwen3.7-plus`, and `qwen3.7-max`.
|
|
9
9
|
* - Expected to work for any Qwen3 hybrid-thinking model (qwen3-* series)
|
|
10
10
|
* that supports the `enable_thinking` top-level field on DashScope's
|
|
11
11
|
* OpenAI-compatible surface.
|