copilot-custom-endpoint 3.4.0 → 3.4.1
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 +2 -2
- package/docs/models/qwen.md +41 -16
- package/docs/pricing.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ It approximates the cost of one point on the AA Intelligence Index under the com
|
|
|
121
121
|
|
|
122
122
|
For example, GLM 5.3 Flash is `(0.5 × $0.15) + (0.1 × $0.50) = $0.125`, shown as `~$0.13`. Cached-input discounts are not included. Actual costs vary with context length, output length, caching, pricing tiers, promotions, and provider billing. DeepSeek estimates use peak rates; official off-peak rates are half.
|
|
123
123
|
|
|
124
|
-
The current AA values come from OpenRouter's September 30 model metadata and ranking card; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** The OpenRouter ranking card places unversioned Qwen3.8 Max at **53.4 (#
|
|
124
|
+
The current AA values come from OpenRouter's September 30 model metadata and ranking card; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** The OpenRouter ranking card places unversioned Qwen3.8 Max at **53.4 (#3)**, while the exact 0902 API metadata row is **45.4**. Qwen Cloud PAYG pricing remains **$2 / $0.25 implicit cache / $6** for Qwen3.8 Max; its separate Token Plan is not the PAYG rate table. This refresh records Gemini 3.8 Flash, Grok 4.7, GPT-6 Sol, GPT-6.1 Sol, GPT-6 Luna, Claude Opus 5.5, and Claude Sonnet 5.5 as **Copilot-native** models, using current AA v4.3.2 composites. GPT-6.1 Sol (released September 29) enters at **51.8**, and MiMo V2.6 Flash now has a composite (**37.9**) and moves to the top of the table.
|
|
125
125
|
|
|
126
126
|
| Model | Provider | Cost per intelligence | Intelligence Score | Est. session | Vision | Context window |
|
|
127
127
|
| ---------------------------- | --------- | --------------------- | ------------------ | ------------ | ------ | -------------- |
|
|
@@ -215,7 +215,7 @@ GitHub ships a first-party MCP server (and it's even bundled into Copilot), so a
|
|
|
215
215
|
2. If the provider needs request rewriting, add a proxy under `proxy/`.
|
|
216
216
|
3. Submit a PR.
|
|
217
217
|
|
|
218
|
-
The current AA values come from OpenRouter's September 30 model metadata and ranking card; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** The OpenRouter ranking card places unversioned Qwen3.8 Max at **53.4 (#
|
|
218
|
+
The current AA values come from OpenRouter's September 30 model metadata and ranking card; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** The OpenRouter ranking card places unversioned Qwen3.8 Max at **53.4 (#3)**, while the exact 0902 API metadata row is **45.4**. Qwen Cloud PAYG pricing remains **$2 / $0.25 implicit cache / $6** for Qwen3.8 Max; its separate Token Plan is not the PAYG rate table. This refresh records Gemini 3.8 Flash, Grok 4.7, GPT-6 Sol, GPT-6.1 Sol, GPT-6 Luna, Claude Opus 5.5, and Claude Sonnet 5.5 as **Copilot-native** models, using current AA v4.3.2 composites. GPT-6.1 Sol (released September 29) enters at **51.8**, and MiMo V2.6 Flash now has a composite (**37.9**).
|
|
219
219
|
|
|
220
220
|
- **Chat only.** Inline completions, semantic search, and next-edit suggestions still need a GitHub-hosted model.
|
|
221
221
|
- Each proxy is tuned for a specific provider family. Don't point the Kimi proxy at an arbitrary OpenAI-compatible endpoint.
|
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.8-max` (vision) works both direct and via the local proxy. OpenRouter's live rankings card shows unversioned Qwen3.8 Max at **#
|
|
3
|
+
> **TL;DR:** `qwen3.8-max` (vision) works both direct and via the local proxy. OpenRouter's live rankings card shows unversioned Qwen3.8 Max at **#3 with 53.4**, while the exact `qwen/qwen3.8-max-0902` API metadata row is **45.4**; the public API no longer exposes the unversioned ID. The proxy forwards the upstream `model` value unchanged, so use the exact model ID supported by the endpoint you choose. 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. Use the **OpenAI-compatible** endpoint on your **workspace-dedicated** domain ([details](#which-endpoint-to-use)).
|
|
4
4
|
|
|
5
5
|
## At a Glance
|
|
6
6
|
|
|
@@ -29,32 +29,47 @@
|
|
|
29
29
|
|
|
30
30
|
### OpenRouter snapshot records
|
|
31
31
|
|
|
32
|
-
These are separate OpenRouter catalog entries, not
|
|
32
|
+
These are separate OpenRouter catalog entries, not alternative labels for one model:
|
|
33
33
|
|
|
34
|
-
| OpenRouter slug
|
|
35
|
-
|
|
|
36
|
-
| `qwen/qwen3.8-max`
|
|
37
|
-
| `qwen/qwen3.8-max-0902`
|
|
34
|
+
| OpenRouter slug | Snapshot | AA Intelligence Index | Notes |
|
|
35
|
+
| ------------------------ | -------- | --------------------- | ----------------------------------------------------------------------------- |
|
|
36
|
+
| `qwen/qwen3.8-max` | 0803 | **53.4 (#3)** | Current ranking-card result; exact unversioned API entry is no longer exposed |
|
|
37
|
+
| `qwen/qwen3.8-max-0902` | 0902 | **45.4** | September snapshot; current exact-ID API metadata |
|
|
38
|
+
| `qwen/qwen3.8-max-prime` | 0923 | — | Higher-throughput variant at 2× the 0902 rates; no AA composite yet |
|
|
38
39
|
|
|
39
40
|
The DashScope custom-endpoint snippets below use the provider model ID `qwen3.8-max`. Do not replace it with the OpenRouter `qwen/qwen3.8-max-0902` slug unless you also change the upstream URL to OpenRouter and have verified that path independently.
|
|
40
41
|
|
|
42
|
+
OpenRouter's `qwen/qwen3.8-max-prime` SKU (0923) is a higher-throughput variant billed at 2× the 0902 list rates (**$4 / $0.50 cache read / $12** per 1M tokens). No AA composite is published for it yet, and it is not part of the validated DashScope setup.
|
|
43
|
+
|
|
41
44
|
### Optional OpenRouter snapshot proxy
|
|
42
45
|
|
|
43
|
-
The proxy forwards the `model` field without mapping it, so it can also be pointed at OpenRouter for
|
|
46
|
+
The proxy forwards the `model` field without mapping it, so it can also be pointed at OpenRouter for these catalog entries. This is an **optional, unvalidated OpenRouter path**; it is separate from the validated DashScope setup above and requires an OpenRouter API key.
|
|
44
47
|
|
|
45
|
-
1.
|
|
48
|
+
1. Point the proxy at OpenRouter — pick **one** of these launch methods:
|
|
49
|
+
- **From the repo (`.env`):** add this to the repo-root `.env` file, then start the proxy with `npm run proxy:qwen`:
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
```dotenv
|
|
52
|
+
QWEN_UPSTREAM_URL=https://openrouter.ai/api/v1/chat/completions
|
|
53
|
+
```
|
|
50
54
|
|
|
51
|
-
|
|
55
|
+
> `npm run proxy:qwen` always runs with cwd = repo root, so the proxy's `import 'dotenv/config'` picks up this `.env` automatically.
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
- **Via npx:** `npx copilot-custom-endpoint qwen` forks the same proxy, but loads `.env` from **whatever directory you run it in**. If that directory has no `.env` with `QWEN_UPSTREAM_URL`, the proxy silently falls back to the legacy DashScope upstream and OpenRouter slugs like `qwen/qwen3.8-max` will fail against it. Either run it from a directory containing a suitable `.env`, or set the variable in the shell first (see next option). Note that `npx` runs the **published** package version, not your local working tree.
|
|
58
|
+
|
|
59
|
+
- **Inline env var (Git Bash / bash):** shell variables take precedence over `.env` (dotenv does not override variables already in `process.env`), so this works from any directory without editing `.env`:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
QWEN_UPSTREAM_URL=https://openrouter.ai/api/v1/chat/completions npx copilot-custom-endpoint qwen
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
PowerShell equivalent:
|
|
66
|
+
|
|
67
|
+
```powershell
|
|
68
|
+
$env:QWEN_UPSTREAM_URL = 'https://openrouter.ai/api/v1/chat/completions'
|
|
69
|
+
npx copilot-custom-endpoint qwen
|
|
70
|
+
```
|
|
56
71
|
|
|
57
|
-
|
|
72
|
+
2. Add a separate provider group using the OpenRouter key and these model entries:
|
|
58
73
|
|
|
59
74
|
```json
|
|
60
75
|
{
|
|
@@ -82,6 +97,16 @@ The proxy forwards the `model` field without mapping it, so it can also be point
|
|
|
82
97
|
"streaming": true,
|
|
83
98
|
"maxInputTokens": 991000,
|
|
84
99
|
"maxOutputTokens": 131072
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "qwen/qwen3.8-max-prime",
|
|
103
|
+
"name": "Qwen 3.8 Max Prime (0923)",
|
|
104
|
+
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
105
|
+
"toolCalling": true,
|
|
106
|
+
"vision": true,
|
|
107
|
+
"streaming": true,
|
|
108
|
+
"maxInputTokens": 991000,
|
|
109
|
+
"maxOutputTokens": 131072
|
|
85
110
|
}
|
|
86
111
|
]
|
|
87
112
|
}
|
package/docs/pricing.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Pricing
|
|
2
2
|
|
|
3
|
-
> **Latest refresh (
|
|
3
|
+
> **Latest refresh (October 7, 2026):** targeted re-check of the two Qwen entries against OpenRouter's model metadata and ranking card. The rankings card now places unversioned Qwen3.8 Max at **#3** (53.4, tied on score with Claude Fable 5.1), the `qwen/qwen3.8-max-0902` metadata row still reports **45.4**, and OpenRouter lists a newer higher-throughput `qwen/qwen3.8-max-prime` SKU (0923) at **$4 / $0.50 cache read / $12** per 1M — it has no AA composite yet, so it carries no Cost per intelligence row (see [docs/models/qwen.md](models/qwen.md)). No table values changed.
|
|
4
|
+
>
|
|
5
|
+
> **Earlier refresh (September 30, 2026):** GPT-6.1 Sol (released September 29 at OpenAI DevDay; GA in GitHub Copilot the same day for Pro+, Max, Business, and Enterprise) is added at **$2 / $0.10 cache hit / $10** per 1M tokens — identical input/output to GPT-6 Sol, with cache hits at half the rate ($0.10 vs $0.20) — and an Artificial Analysis v4.3.2 composite of **51.8**, so at **~$0.0386** per intelligence point it sorts between Grok 4.6 and GPT-6 Sol. OpenAI cancelled the planned **GPT-6.1 Astra** over safety concerns, so no such row exists. Every other composite and first-party rate was re-checked against live OpenRouter metadata and provider pages with no changes.
|
|
4
6
|
>
|
|
5
7
|
> **Earlier refresh (September 29, 2026):** Claude Sonnet 5.5 (released September 28, GA in GitHub Copilot from Pro) is added at **$2 / $0.20 cache hit / $10** per 1M tokens, unchanged from Sonnet 5, with an Artificial Analysis v4.3.2 composite of **56.0**. MiMo V2.6 Flash now has a composite (**37.9**), so it is scored and sorted instead of listed last; at ~$0.0026 it is the lowest cost per intelligence in the table. All other first-party rates were re-verified with no changes.
|
|
6
8
|
>
|