copilot-custom-endpoint 2.1.2 → 2.1.3

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 CHANGED
@@ -117,16 +117,18 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
117
117
  | **MiMo V2.5 Pro** | Xiaomi | **~$0.0070** | **42.9** | ~$0.30 | ❌ | 1M |
118
118
  | **Qwen 3.7 Plus** ¹² | DashScope | **~$0.0074** | **39.4** | ~$0.29 | ✅ | 1M |
119
119
  | **MiniMax M3 Priority**⁴ | MiniMax | **~$0.0090** | **45.4** | ~$0.41 | ✅ | 1M |
120
+ | **Gemini 3.7 Flash** ¹³ | Google | **~$0.013** | **56** | ~$0.75 | ✅ | 1M |
121
+ | **Gemini 3.6 Flash** ⁸ | Google | **~$0.015** | **51.6** | ~$0.75 | ✅ | 1M |
120
122
  | **Kimi K2.6** | Moonshot | **~$0.020** | **45.0** | ~$0.88 | ✅ | 262K |
121
123
  | **GPT-5.4 mini** | OpenAI | **~$0.020** | **40.9** | ~$0.83 | ❌ | 400K |
122
124
  | **Kimi K2.7 Code** | Moonshot | **~$0.020** | **43.0** | ~$0.88 | ✅ | 262K |
123
125
  | **GLM 5.2** | Z.ai | **~$0.022** | **52.6** | ~$1.14 | ❌ | 1M |
124
126
  | **Qwen 3.7 Max** ¹² | DashScope | **~$0.025** | **46.7** | ~$1.18 | ❌ | 1M |
127
+ | **Grok 4.6** ¹⁴ | xAI | **~$0.026** | **61** | ~$1.60 | ✅ | 500K |
125
128
  | **Qwen 3.8 Max** ¹⁰ | DashScope | **~$0.028** | **58.1** | ~$1.60 | ✅ | 1M |
126
129
  | **GLM 5.1** | Z.ai | **~$0.028** | **41.0** | ~$1.14 | ❌ | 200K |
127
130
  | **GLM 5V Turbo** | Z.ai | **~$0.029** | **35.0** ³ | ~$1.00 | ✅ | 200K |
128
131
  | **Grok 4.5** ¹¹ | xAI | **~$0.029** | **55.8** | ~$1.60 | ✅ | 500K |
129
- | **Gemini 3.6 Flash** ⁸ | Google | **~$0.029** | **51.6** | ~$1.50 | ✅ | 1M |
130
132
  | **Gemini 3.5 Flash** | Google | **~$0.032** | **52.0** | ~$1.65 | ✅ | 1M |
131
133
  | **GPT-5.6 Terra** | OpenAI | **~$0.039** | **56.6** | ~$2.20 | ✅ | 1M |
132
134
  | **Gemini 3.1 Pro** | Google | **~$0.046** | **47.7** | ~$2.20 | ✅ | 1M |
@@ -152,16 +154,20 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
152
154
 
153
155
  ⁷ **Kimi K3** launched July 16, 2026. 2.8T params (open-source weights by July 27, 2026). Always-thinking reasoning model — uses `reasoning_effort` (not the K2.x `thinking` parameter). AA Intelligence Index score of **59.7** confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/kimi-k3). Priced at $3.00 / $15.00 per MTok input/output. Requires the local Kimi proxy. See [docs/models/kimi.md](docs/models/kimi.md).
154
156
 
155
- ⁸ **Gemini 3.6 Flash** launched July 21, 2026. Priced at $1.50 / $7.50 per MTok input/output ($0.15 cached). AA Intelligence Index score of **51.6** confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/gemini-3-6-flash). 1M context with vision.
157
+ ⁸ **Gemini 3.6 Flash** launched July 21, 2026. **Promotional pricing** of $0.75 / $3.75 per MTok input/output ($0.075 cached) through **December 31, 2026**; $1.50 / $7.50 from January 1, 2027. AA Intelligence Index score of **51.6** confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/gemini-3-6-flash). 1M context with vision.
156
158
 
157
159
  ⁹ **Claude Opus 5** launched July 24, 2026. AA Intelligence Index score of **63.1** (#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).
158
160
 
159
161
  ¹⁰ **Qwen 3.8 Max** (`qwen3.8-max`) has a confirmed Artificial Analysis Intelligence Index of **58.1** (Coding **71.8**, Agentic **58.4**) — see [AA](https://artificialanalysis.ai/models/qwen3-8-max) and [OpenRouter](https://openrouter.ai/qwen/qwen3.8-max). Arena snapshots place it **#5 in Text**, **#2 in Vision**, and **#4 in Code/WebDev**; it is not listed in Agent Arena. See [Arena](https://arena.ai/leaderboard).
160
162
 
161
- ¹¹ **Grok 4.5** (xAI, released July 8, 2026) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context, text + image input. Priced at $2.00 / $0.30 / $6.00 per 1M input/cached/output.
163
+ ¹¹ **Grok 4.5** (xAI, released July 8, 2026) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context, text + image input. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output (75% cache discount).
162
164
 
163
165
  ¹² **Qwen 3.7 price cuts** (verified August 7, 2026): `qwen3.7-max` dropped from $2.50 / $7.50 to **$1.475 / $4.425** per 1M input/output (cached $0.295), and `qwen3.7-plus` dropped from $0.40 / $1.60 to **$0.32 / $1.28** per 1M (cached $0.064).
164
166
 
167
+ ¹³ **Gemini 3.7 Flash** (Google, released August 13, 2026) is GitHub Copilot native (GA, Versatile). AA Intelligence Index **56** (high preset) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/gemini-3-7-flash). **Promotional pricing** of $0.75 / $3.75 per MTok input/output ($0.075 cached) through December 31, 2026, then $1.50 / $7.50. 1M context, text + image + speech + video input, and the fastest model on AA's leaderboard (340 t/s).
168
+
169
+ ¹⁴ **Grok 4.6** (xAI, released August 12, 2026) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **61** (high preset, #6/188). 500K context, text + image input. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output. See the [AA model page](https://artificialanalysis.ai/models/grok-4-6) and the [xAI announcement](https://x.ai/news/grok-4-6).
170
+
165
171
  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).
166
172
 
167
173
  > **👤 Personal picks** —
@@ -170,6 +176,7 @@ For footnotes, sources, and detailed notes (cache behavior, tiered pricing, free
170
176
  >
171
177
  > - **GPT-5.6 Luna** (Copilot native) — scores **52.3**, ~$0.22/session, vision-capable. Higher intelligence than MiniMax M3 (45.4) at a lower modeled cost, with reduced AI-credit consumption after OpenAI's July price cut.
172
178
  > - **DeepSeek V4 Flash 0731** (extension) — scores **51.8** after the AA v4.1.1 benchmark refresh, ~$0.10/session — the best intelligence-per-dollar in the lineup. Text-only, so pair it with a vision model when you need images.
179
+ > - **Gemini 3.7 Flash** (Copilot native, new August 13) — scores **56** at ~$0.75/session under promotional pricing. The best-value Google model in Copilot: it beats Gemini 3.5 Flash (52.0) and Grok 4.5 (55.8) on intelligence at roughly half the session cost, with 1M context, full multimodal input, and AA's fastest output speed. A strong upgrade pick if you use Google models.
173
180
  >
174
181
  > **MiniMax M3** (45.4, ~$0.27/session) is still the best **direct** custom-endpoint option — no proxy or extension, vision, 1M context, strong coding — but it no longer leads on value now that DeepSeek V4 Flash scores higher at a third of the cost. Pick M3 when you want a plug-and-play custom endpoint with vision.
175
182
  >
package/docs/pricing.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pricing
2
2
 
3
- > **Updated:** August 7, 2026 — All AA Intelligence Index scores refreshed to **Index v4.1.1** (most models gained ~1–2.5 pts). **Qwen 3.7 Max / 3.7 Plus price cuts** (see footnote ¹³). **Grok 4.5 added** for comparison. OpenRouter is running limited-time promos on GPT-5.6 Terra/Luna (⁸), GLM 5.2 (⁴), GLM 5.1, MiMo V2.5/V2.5 Pro, and MiniMax M3.
3
+ > **Updated:** August 14, 2026 — **Grok 4.6** and **Gemini 3.7 Flash** added (footnotes ¹⁴–¹⁵). **Gemini 3.6 Flash promotional price cut** to $0.75 / $3.75 (footnote ⁹). **Qwen 3.7 Max / 3.7 Plus price cuts** (see footnote ¹³). OpenRouter is running limited-time promos on GPT-5.6 Terra/Luna (⁸), GLM 5.2 (⁴), GLM 5.1, MiMo V2.5/V2.5 Pro, and MiniMax M3.
4
4
 
5
5
  > **⏰ June 1, 2026 — GitHub Copilot switched to usage-based billing (AI Credits) today.**
6
6
  >
@@ -32,16 +32,18 @@ All models are listed together below, sorted by Cost per intelligence ascending
32
32
  | **MiMo V2.5 Pro** | Xiaomi | **~$0.0070** | **42.9** | $0.435 | $0.0036 | $0.87 | ~$0.30 | 1M |
33
33
  | **Qwen 3.7 Plus** ¹³ | DashScope | **~$0.0074** | **39.4** | $0.32 (≤256K) / $0.40 (>256K) | $0.064 | $1.28 (≤256K) / $1.60 (>256K) | ~$0.29 | 1M |
34
34
  | **MiniMax M3 Priority**⁵ | MiniMax | **~$0.0090** | **45.4** | $0.90 (≤512K) / $1.80 (>512K) | $0.18 (≤512K) / $0.36 (>512K) | $3.60 (≤512K) / $7.20 (>512K) | ~$0.41 | 1M |
35
+ | **Gemini 3.7 Flash** ¹⁵ | Google | **~$0.013** | **56** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
36
+ | **Gemini 3.6 Flash** ⁹ | Google | **~$0.015** | **51.6** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
35
37
  | **Kimi K2.6** | Moonshot | **~$0.020** | **45.0** | $0.95 | $0.16 | $4.00 | ~$0.88 | 256K |
36
38
  | **GPT-5.4 mini** | OpenAI | **~$0.020** | **40.9** | $0.75 | $0.075 | $4.50 | ~$0.83 | 400K |
37
39
  | **Kimi K2.7 Code** | Moonshot | **~$0.020** | **43.0** | $0.95 | $0.19 | $4.00 | ~$0.88 | 262K |
38
40
  | **GLM 5.2** ⁴ | Z.ai | **~$0.022** | **52.6** | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
39
41
  | **Qwen 3.7 Max** ¹³ | DashScope | **~$0.025** | **46.7** | $1.475 (≤1M) | $0.295 | $4.425 (≤1M) | ~$1.18 | 1M |
42
+ | **Grok 4.6** ¹⁴ | xAI | **~$0.026** | **61** | $2.00 | $0.50 | $6.00 | ~$1.60 | 500K |
40
43
  | **Qwen 3.8 Max** ¹¹ | DashScope | **~$0.028** | **58.1** | $2.00 | $0.25 | $6.00 | ~$1.60 | 1M |
41
44
  | **GLM 5.1** | Z.ai | **~$0.028** | **41.0** | $1.40 | $0.26 | $4.40 | ~$1.14 | 200K |
42
45
  | **GLM 5V Turbo** | Z.ai | **~$0.029** | **35.0** ³ | $1.20 | $0.24 | $4.00 | ~$1.00 | 200K |
43
- | **Grok 4.5** ¹² | xAI | **~$0.029** | **55.8** | $2.00 | $0.30 | $6.00 | ~$1.60 | 500K |
44
- | **Gemini 3.6 Flash** ⁹ | Google | **~$0.029** | **51.6** | $1.50 | $0.15 | $7.50 | ~$1.50 | 1M |
46
+ | **Grok 4.5** ¹² | xAI | **~$0.029** | **55.8** | $2.00 | $0.50 | $6.00 | ~$1.60 | 500K |
45
47
  | **Gemini 3.5 Flash** | Google | **~$0.032** | **52.0** | $1.50 | $0.15 | $9.00 | ~$1.65 | 1M |
46
48
  | **GPT-5.6 Terra** | OpenAI | **~$0.039** | **56.6** | $2.00 | $0.20 | $12.00 | ~$2.20 | 1M |
47
49
  | **Gemini 3.1 Pro** | Google | **~$0.046** | **47.7** | $2.00¹ | $0.20 | $12.00¹ | ~$2.20 | 1M |
@@ -69,16 +71,20 @@ All models are listed together below, sorted by Cost per intelligence ascending
69
71
 
70
72
  ⁸ **GPT-5.6** pricing is **$0.20 / $0.02 / $1.20** for Luna, **$2.00 / $0.20 / $12.00** for Terra, and **$5.00 / $0.50 / $30.00** for Sol (input / cached input / output per 1M tokens). OpenAI reduced Luna by 80% and Terra by 20% on July 30, 2026; Sol is unchanged. OpenAI bills cache writes at 1.25x the uncached input rate for GPT-5.6 and later. The Batch API provides an additional 50% discount for asynchronous jobs. All three tiers have a 1M-token context window and support text + image input. See [OpenAI's GPT-5.6 price update](https://openai.com/index/advancing-the-price-performance-frontier-with-gpt-5-6/) and [GPT-5.6 announcement](https://openai.com/index/gpt-5-6/). **As of August 7, 2026, OpenRouter is running a limited-time 50% promotional discount on Terra and Luna** (effective **$0.10 / $0.60** per 1M for Luna and **$1.00 / $6.00** per 1M for Terra, input/output) on top of the list prices above — this is a temporary third-party promo, not an OpenAI list-price change.
71
73
 
72
- ⁹ **Gemini 3.6 Flash** was released on **July 21, 2026**. AA Intelligence Index score (**51.6**) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/gemini-3-6-flash). Pricing is $1.50 input / $0.15 cached / $7.50 output per MTok.
74
+ ⁹ **Gemini 3.6 Flash** was released on **July 21, 2026**. AA Intelligence Index score (**51.6**) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/gemini-3-6-flash). **Promotional pricing** of $0.75 input / $0.075 cached / $3.75 output per MTok applies through **December 31, 2026** (in both Copilot and the Gemini API); from **January 1, 2027** the standard $1.50 / $0.15 / $7.50 rates apply. See [Google's pricing page](https://ai.google.dev/pricing).
73
75
 
74
76
  ¹⁰ **Claude Opus 5** was released on **July 24, 2026**. AA Intelligence Index score (**63.1**) 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).
75
77
 
76
78
  ¹¹ **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. Artificial Analysis has published an Intelligence Index of **58.1** for this model (**#9/185**; listed as a rounded **58** on its [model page](https://artificialanalysis.ai/models/qwen3-8-max)); OpenRouter metadata also reports Coding **71.8** and Agentic **58.4**. Pricing is unchanged as of August 7, 2026. See the [Qwen Cloud model page](https://www.qwencloud.com/models/qwen3.8-max), [AA model page](https://artificialanalysis.ai/models/qwen3-8-max), and [OpenRouter model page](https://openrouter.ai/qwen/qwen3.8-max).
77
79
 
78
- ¹² **Grok 4.5** (xAI, released **July 8, 2026**) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context window, text + image input. Priced at $2.00 / $0.30 / $6.00 per 1M input/cached/output.
80
+ ¹² **Grok 4.5** (xAI, released **July 8, 2026**) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context window, text + image input. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output (75% cache discount).
79
81
 
80
82
  ¹³ **Qwen 3.7 price cuts** (verified August 7, 2026): `qwen3.7-max` dropped from $2.50 / $7.50 to **$1.475 / $4.425** per 1M input/output (cached $0.295; >256K input tier $1.844), and `qwen3.7-plus` dropped from $0.40 / $1.60 to **$0.32 / $1.28** per 1M (cached $0.064; >256K tier $0.40 / $1.60).
81
83
 
84
+ ¹⁴ **Grok 4.6** (xAI/SpaceXAI, released **August 12, 2026**) is included for comparison — it is not a GitHub Copilot native model nor a custom-endpoint model in this repo. AA Intelligence Index **61** (high reasoning preset, #6/188). 500K context window, text + image input, text output. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output (75% cache discount). See the [AA model page](https://artificialanalysis.ai/models/grok-4-6) and the [xAI announcement](https://x.ai/news/grok-4-6).
85
+
86
+ ¹⁵ **Gemini 3.7 Flash** (Google, released **August 13, 2026**) — GitHub Copilot native (GA, Versatile) at the same promotional rates as 3.6 Flash. AA Intelligence Index **56** (high reasoning preset, #17/188). **Promotional pricing** of $0.75 / $0.075 / $3.75 per 1M input/cached/output through **December 31, 2026**, then $1.50 / $0.15 / $7.50 from January 1, 2027. 1M context window, text + image + speech + video input, and the fastest model on AA's leaderboard (340 t/s). See the [AA model page](https://artificialanalysis.ai/models/gemini-3-7-flash), [Google's Gemini page](https://deepmind.google/models/gemini/), and [GitHub Copilot pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing).
87
+
82
88
  Cost per intelligence = estimated session cost ÷ Intelligence Index score. Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns.
83
89
 
84
90
  > **Notes:**
@@ -99,7 +105,7 @@ Cost per intelligence = estimated session cost ÷ Intelligence Index score. Sess
99
105
 
100
106
  > **How long does 7,000 credits last?** A Pro+ subscriber running 50-turn sessions could afford roughly **13 GPT-5.5 sessions** or **23 Opus sessions** per month — or mix and match. (Multiply session cost by 100 to convert to AI credits.)
101
107
 
102
- > Prices last verified: August 7, 2026. Always check the official pages for the latest rates:
108
+ > Prices last verified: August 14, 2026. Always check the official pages for the latest rates:
103
109
  >
104
110
  > - [GitHub Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)
105
111
  > - [OpenAI pricing](https://openai.com/api/pricing/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilot-custom-endpoint",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
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
+ }