@prestyj/core 5.39.3 → 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.
@@ -759,12 +759,28 @@ var MODELS = [
759
759
  maxThinkingLevel: "high"
760
760
  },
761
761
  // ── Z.AI (GLM) ─────────────────────────────────────────
762
- // Two GLM entries, both live on the coding endpoint (verified against its
762
+ // All GLM entries are live on the coding endpoint (verified against its
763
763
  // /models list). The pre-5.3 ids stay retired: they routed to strictly worse
764
764
  // coding for the same plan quota, and the endpoint already answers `glm-5.2`
765
765
  // requests as glm-5.3.
766
766
  // `max` is both the ceiling and Z.AI's own default — the rungs below it live
767
767
  // in thinking-level.ts.
768
+ // GLM-5.4 (released 2026-11) is served on the coding endpoint, which our
769
+ // `glm` key already uses (listed in its /models, 2026-11-30). Images
770
+ // are native (verified: base64 PNG read back exactly), so its attachments go
771
+ // inline rather than through the zai_vision MCP that 5.3 still needs.
772
+ {
773
+ id: "glm-5.4",
774
+ name: "GLM-5.4",
775
+ provider: "glm",
776
+ contextWindow: 1e6,
777
+ maxOutputTokens: 131072,
778
+ supportsThinking: true,
779
+ supportsImages: true,
780
+ supportsVideo: false,
781
+ costTier: "medium",
782
+ maxThinkingLevel: "max"
783
+ },
768
784
  {
769
785
  id: "glm-5.3",
770
786
  name: "GLM-5.3",
@@ -775,7 +791,10 @@ var MODELS = [
775
791
  supportsImages: false,
776
792
  supportsVideo: false,
777
793
  costTier: "medium",
778
- maxThinkingLevel: "max"
794
+ maxThinkingLevel: "max",
795
+ // When 5.4 landed (2026-11-23), 5.3's ladder shrank: medium/xhigh and thinking-off now 400 with
796
+ // "always engages in thinking … please use low, high, or max".
797
+ thinkingLevels: ["low", "high", "max"]
779
798
  },
780
799
  // GLM-5.3-Flash (released 2026-08-26): 320B-A18B natively multimodal sibling
781
800
  // at ~1/20th of 5.3's API price with 3× the coding-plan quota, so it is the
@@ -1201,7 +1220,7 @@ var DEFAULT_MODEL_IDS = {
1201
1220
  xiaomi: "mimo-v2.6-pro",
1202
1221
  openai: "gpt-6.2-sol",
1203
1222
  gemini: "gemini-3.1-flash-lite",
1204
- glm: "glm-5.3",
1223
+ glm: "glm-5.4",
1205
1224
  moonshot: "kimi-k3",
1206
1225
  minimax: "MiniMax-M3.1-Flash",
1207
1226
  deepseek: "deepseek-v4-pro",