@aliou/pi-neuralwatt 0.15.1 → 0.15.2

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.
@@ -53,6 +53,19 @@ const GLM_5_2: NeuralwattModelFamily = {
53
53
  },
54
54
  };
55
55
 
56
+ // ZhipuAI. GLM-5.3 ships as a GLM-5.2 weight swap in gated preview, with
57
+ // GLM-5.2 pricing parity (per the API metadata; review at launch). Unlike
58
+ // 5.2, reasoning is mandatory and `none` is not offered: efforts are
59
+ // max/high/low (default max).
60
+ const GLM_5_3: NeuralwattModelFamily = {
61
+ cost: { input: 1.45, output: 4.5, cacheRead: 0.145 },
62
+ vision: false,
63
+ reasoningMetadata: {
64
+ supported_efforts: ["max", "high", "low"],
65
+ mandatory: true,
66
+ },
67
+ };
68
+
56
69
  // MoonshotAI. K3 supports reasoning efforts low/high/max (default max) and
57
70
  // can be turned off (`mandatory: false`). The `-fast` endpoint is a shorthand
58
71
  // to set thinking to off.
@@ -183,6 +196,18 @@ const FAMILIES: [NeuralwattModelFamily, NeuralwattVariantSpec[]][] = [
183
196
  },
184
197
  ],
185
198
  ],
199
+ [
200
+ GLM_5_3,
201
+ [
202
+ {
203
+ id: "glm-5.3",
204
+ name: "GLM-5.3",
205
+ contextWindow: 1048560,
206
+ maxOutputTokens: null,
207
+ reasoning: true,
208
+ },
209
+ ],
210
+ ],
186
211
  // The kimi-k3 endpoint rejects anything above 327,680 total tokens with
187
212
  // `400: max_completion_tokens is too large … supports at most 327680
188
213
  // completion tokens` (verified at runtime), even though the API advertises
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliou/pi-neuralwatt",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -52,6 +52,7 @@
52
52
  "@types/node": "^25.0.10",
53
53
  "husky": "^9.1.7",
54
54
  "ts-json-schema-generator": "^2.4.0",
55
+ "tsx": "4.23.12",
55
56
  "typescript": "^5.9.3",
56
57
  "vitest": "^4.0.18"
57
58
  },
@@ -67,6 +68,7 @@
67
68
  "format": "biome check --write",
68
69
  "test": "vitest run",
69
70
  "test:watch": "vitest",
71
+ "check:models": "tsx scripts/check-models.ts",
70
72
  "gen:schema": "pi-settings-schema -p src/config/types.ts -t NeuralwattConfig -o schema.json --version 0.12.0",
71
73
  "check:schema": "pi-settings-schema -p src/config/types.ts -t NeuralwattConfig -o schema.json --version 0.12.0 --check",
72
74
  "check:lockfile": "pnpm install --frozen-lockfile --ignore-scripts",