@prestyj/core 5.40.0 → 5.41.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/dist/index.cjs CHANGED
@@ -3413,12 +3413,28 @@ var MODELS = [
3413
3413
  maxThinkingLevel: "high"
3414
3414
  },
3415
3415
  // ── Z.AI (GLM) ─────────────────────────────────────────
3416
- // Two GLM entries, both live on the coding endpoint (verified against its
3416
+ // All GLM entries are live on the coding endpoint (verified against its
3417
3417
  // /models list). The pre-5.3 ids stay retired: they routed to strictly worse
3418
3418
  // coding for the same plan quota, and the endpoint already answers `glm-5.2`
3419
3419
  // requests as glm-5.3.
3420
3420
  // `max` is both the ceiling and Z.AI's own default — the rungs below it live
3421
3421
  // in thinking-level.ts.
3422
+ // GLM-5.4 (released 2026-11) is served on the coding endpoint, which our
3423
+ // `glm` key already uses (listed in its /models, 2026-11-30). Images
3424
+ // are native (verified: base64 PNG read back exactly), so its attachments go
3425
+ // inline rather than through the zai_vision MCP that 5.3 still needs.
3426
+ {
3427
+ id: "glm-5.4",
3428
+ name: "GLM-5.4",
3429
+ provider: "glm",
3430
+ contextWindow: 1e6,
3431
+ maxOutputTokens: 131072,
3432
+ supportsThinking: true,
3433
+ supportsImages: true,
3434
+ supportsVideo: false,
3435
+ costTier: "medium",
3436
+ maxThinkingLevel: "max"
3437
+ },
3422
3438
  {
3423
3439
  id: "glm-5.3",
3424
3440
  name: "GLM-5.3",
@@ -3429,7 +3445,10 @@ var MODELS = [
3429
3445
  supportsImages: false,
3430
3446
  supportsVideo: false,
3431
3447
  costTier: "medium",
3432
- maxThinkingLevel: "max"
3448
+ maxThinkingLevel: "max",
3449
+ // When 5.4 landed (2026-11-23), 5.3's ladder shrank: medium/xhigh and thinking-off now 400 with
3450
+ // "always engages in thinking … please use low, high, or max".
3451
+ thinkingLevels: ["low", "high", "max"]
3433
3452
  },
3434
3453
  // GLM-5.3-Flash (released 2026-08-26): 320B-A18B natively multimodal sibling
3435
3454
  // at ~1/20th of 5.3's API price with 3× the coding-plan quota, so it is the
@@ -3855,7 +3874,7 @@ var DEFAULT_MODEL_IDS = {
3855
3874
  xiaomi: "mimo-v2.6-pro",
3856
3875
  openai: "gpt-6.2-sol",
3857
3876
  gemini: "gemini-3.1-flash-lite",
3858
- glm: "glm-5.3",
3877
+ glm: "glm-5.4",
3859
3878
  moonshot: "kimi-k3",
3860
3879
  minimax: "MiniMax-M3.1-Flash",
3861
3880
  deepseek: "deepseek-v4-pro",
@@ -4708,7 +4727,7 @@ var ALL_AUTH_PROVIDERS = [
4708
4727
  {
4709
4728
  value: "glm",
4710
4729
  label: "Z.AI (GLM)",
4711
- description: "GLM-5.3, GLM-5.3-Flash",
4730
+ description: "GLM-5.4, GLM-5.3, GLM-5.3-Flash",
4712
4731
  methods: ["apikey"],
4713
4732
  apiKeyLabel: "Z.AI"
4714
4733
  },