pi-hypercharm-provider 1.3.20 → 1.3.22

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
@@ -32,13 +32,13 @@ _Hyperoptimized coding models — DeepSeek, GLM, Kimi, Qwen, MiniMax, Gemma, GPT
32
32
  | DeepSeek V4 Pro | Text | 1.0M | 384K | $2.40 | $4.80 |
33
33
  | DeepSeek V4 Pro 0813 | Text | 1.0M | 262K | $1.44 | $4.31 |
34
34
  | DeepSeek V4.1 Flash | Text + Image | 1.0M | 26K | $0.30 | $1.20 |
35
- | Gemma 4 26B A4B | Text | 256K | 26K | $0.12 | $0.42 |
35
+ | Gemma 4 26B A4B | Text | 256K | 26K | $0.10 | $0.36 |
36
36
  | GLM 5.3 | Text + Image | 1.0M | 262K | $1.52 | $4.79 |
37
37
  | GLM 5.3 Flash | Text + Image | 1.0M | 131K | $0.16 | $0.54 |
38
- | GLM-5 | Text | 203K | 20K | $0.86 | $2.78 |
39
- | GLM-5.1 | Text | 203K | 3K | $1.33 | $4.22 |
38
+ | GLM-5 | Text | 203K | 20K | $0.86 | $2.75 |
39
+ | GLM-5.1 | Text | 203K | 3K | $1.32 | $4.31 |
40
40
  | GLM-5.2 | Text | 1.0M | 33K | $1.52 | $4.79 |
41
- | gpt-oss-120b | Text | 128K | 13K | $0.18 | $0.68 |
41
+ | gpt-oss-120b | Text | 128K | 13K | $0.17 | $0.66 |
42
42
  | Inkling | Text + Image | 1.0M | 33K | $1.09 | $4.41 |
43
43
  | Kimi K2 Thinking | Text | 262K | 26K | $0.60 | $2.50 |
44
44
  | Kimi K2.5 | Text | 262K | 26K | $0.56 | $2.94 |
@@ -46,8 +46,8 @@ _Hyperoptimized coding models — DeepSeek, GLM, Kimi, Qwen, MiniMax, Gemma, GPT
46
46
  | Kimi K2.7 Code | Text + Image | 262K | 16K | $1.03 | $4.36 |
47
47
  | Kimi K3 | Text + Image | 1.0M | 16K | $3.27 | $16.33 |
48
48
  | Llama 3.3 70B Instruct | Text | 128K | 13K | $0.61 | $1.04 |
49
- | Llama 4 Maverick 17B 128E Instruct FP8 | Text | 430K | 43K | $0.27 | $0.90 |
50
- | MiniMax M2.7 | Text | 262K | 7K | $0.40 | $1.50 |
49
+ | Llama 4 Maverick 17B 128E Instruct FP8 | Text | 430K | 43K | $0.26 | $0.84 |
50
+ | MiniMax M2.7 | Text | 262K | 7K | $0.40 | $1.46 |
51
51
  | MiniMax M3 | Text + Image | 512K | 512K | $0.33 | $1.31 |
52
52
  | Qwen3 Coder 480B A35B Instruct INT4 Mixed AR | Text | 106K | 11K | $0.45 | $2.15 |
53
53
  | Qwen3 Next 80B A3B Instruct | Text | 262K | 26K | $0.12 | $1.14 |
@@ -225,11 +225,18 @@ Model metadata matches Charm's official [`@charmland/pi-hyper-provider`](https:/
225
225
  - `cacheRead` from `cost_per_1m_out_cached` (discounted cached-output price) and `cacheWrite` from `cost_per_1m_in_cached`, exactly as the official provider maps them
226
226
  - `/v1/credits` balance accepted in either hypercredits (`balance`) or USD (`balance_usd`, converted at the observed 20 hc = $1 rate)
227
227
 
228
- `patch.json` is reserved only for a verified provider regression and is currently empty.
228
+ `patch.json` is reserved for verified provider regressions. It currently re-exposes Pi's `max` thinking level on the DeepSeek V4 models whose catalog `reasoning_levels` dropped it (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4.1-flash`), matching the levels their pinned snapshots still publish.
229
229
 
230
230
  ### Patch Overrides
231
231
 
232
- `patch.json` is applied on top of `models.json` only for verified endpoint corrections. It is currently empty because every live field comes from Charm's canonical provider catalog.
232
+ `patch.json` is applied on top of `models.json` only for verified endpoint corrections; every other live field comes from Charm's canonical provider catalog.
233
+
234
+ | Model | Override | Why |
235
+ |-------|----------|-----|
236
+ | `deepseek-v4-flash`, `deepseek-v4-pro` | `thinkingLevelMap.max = "max"` | The catalog now publishes only `high,xhigh`, while the pinned `-0731`/`-0813` snapshots publish `max`. |
237
+ | `deepseek-v4.1-flash` | `thinkingLevelMap.max = "max"` | The catalog publishes `low,high,xhigh`; `max` mirrors the sibling DeepSeek V4 entries. |
238
+
239
+ Each entry carries the model's full level map, because `patch.json` replaces `thinkingLevelMap` wholesale rather than merging it.
233
240
 
234
241
  ## Updating Models
235
242
 
package/models.json CHANGED
@@ -172,9 +172,9 @@
172
172
  "text"
173
173
  ],
174
174
  "cost": {
175
- "input": 0.122,
176
- "output": 0.42,
177
- "cacheRead": 0.061,
175
+ "input": 0.102,
176
+ "output": 0.356,
177
+ "cacheRead": 0.051,
178
178
  "cacheWrite": 0
179
179
  },
180
180
  "contextWindow": 256000,
@@ -268,7 +268,7 @@
268
268
  ],
269
269
  "cost": {
270
270
  "input": 0.86,
271
- "output": 2.784,
271
+ "output": 2.752,
272
272
  "cacheRead": 0.43,
273
273
  "cacheWrite": 0
274
274
  },
@@ -298,9 +298,9 @@
298
298
  "text"
299
299
  ],
300
300
  "cost": {
301
- "input": 1.326,
302
- "output": 4.22,
303
- "cacheRead": 0.663,
301
+ "input": 1.318,
302
+ "output": 4.308,
303
+ "cacheRead": 0.659,
304
304
  "cacheWrite": 0
305
305
  },
306
306
  "contextWindow": 202750,
@@ -360,9 +360,9 @@
360
360
  "text"
361
361
  ],
362
362
  "cost": {
363
- "input": 0.178,
364
- "output": 0.68,
365
- "cacheRead": 0.089,
363
+ "input": 0.168,
364
+ "output": 0.66,
365
+ "cacheRead": 0.084,
366
366
  "cacheWrite": 0
367
367
  },
368
368
  "contextWindow": 128072,
@@ -612,9 +612,9 @@
612
612
  "text"
613
613
  ],
614
614
  "cost": {
615
- "input": 0.274,
616
- "output": 0.8992,
617
- "cacheRead": 0.137,
615
+ "input": 0.255,
616
+ "output": 0.8365,
617
+ "cacheRead": 0.1275,
618
618
  "cacheWrite": 0
619
619
  },
620
620
  "contextWindow": 430000,
@@ -634,9 +634,9 @@
634
634
  "text"
635
635
  ],
636
636
  "cost": {
637
- "input": 0.404,
638
- "output": 1.496,
639
- "cacheRead": 0.202,
637
+ "input": 0.396,
638
+ "output": 1.464,
639
+ "cacheRead": 0.198,
640
640
  "cacheWrite": 0
641
641
  },
642
642
  "contextWindow": 262100,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-hypercharm-provider",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "HyperCharm provider extension for pi - Access DeepSeek, GLM, Kimi, Qwen, MiniMax, Gemma, and GPT-OSS models through the Charm Hyper API",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/patch.json CHANGED
@@ -1 +1,35 @@
1
- {}
1
+ {
2
+ "deepseek-v4-flash": {
3
+ "thinkingLevelMap": {
4
+ "off": null,
5
+ "minimal": null,
6
+ "low": null,
7
+ "medium": null,
8
+ "high": "high",
9
+ "xhigh": "xhigh",
10
+ "max": "max"
11
+ }
12
+ },
13
+ "deepseek-v4-pro": {
14
+ "thinkingLevelMap": {
15
+ "off": null,
16
+ "minimal": null,
17
+ "low": null,
18
+ "medium": null,
19
+ "high": "high",
20
+ "xhigh": "xhigh",
21
+ "max": "max"
22
+ }
23
+ },
24
+ "deepseek-v4.1-flash": {
25
+ "thinkingLevelMap": {
26
+ "off": null,
27
+ "minimal": null,
28
+ "low": "low",
29
+ "medium": null,
30
+ "high": "high",
31
+ "xhigh": "xhigh",
32
+ "max": "max"
33
+ }
34
+ }
35
+ }
@@ -9,8 +9,10 @@
9
9
  *
10
10
  * The endpoint provides canonical names, $/M pricing, context/output limits,
11
11
  * can_reason, optional reasoning levels, and attachment support. models.json is
12
- * pure API data. patch.json is reserved for verified endpoint regressions and
13
- * currently contains no overrides.
12
+ * pure API data. patch.json is reserved for verified endpoint regressions; it
13
+ * currently restores Pi's max thinking level on the DeepSeek V4 models whose
14
+ * catalog reasoning_levels no longer publish it. Patch entries replace
15
+ * thinkingLevelMap wholesale, so each one carries the model's full level map.
14
16
  *
15
17
  * Merge order for README: models.json → apply patch.json → merge custom-models.json
16
18
  *