@ssweens/pi-vertex 1.1.3 → 1.1.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.1.4] - 2026-03-30
6
+ ### Fixed
7
+ - Removed error message override for `400 (no body)` responses from Vertex MaaS models. The original message now passes through to `isContextOverflow()` which already handles this pattern, enabling proper auto-compact instead of showing a raw error to the user.
8
+ - Use `zai` thinking format for `zai-org` publisher models (GLM-5). Previously using `openai` format which never sent `enable_thinking`, causing intermittent 400 errors from the ZAI API.
9
+
5
10
  ## [1.1.3] - 2026-03-26
6
11
  ### Fixed
7
12
  - Hardened Claude-on-Vertex replay for mid-session model switching (tool ID normalization, tool result adjacency, thinking signature validation).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssweens/pi-vertex",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Google Vertex AI provider for Pi coding agent - supports Gemini, Claude, and all MaaS models",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/streaming/maas.ts CHANGED
@@ -364,7 +364,7 @@ export function streamMaaS(
364
364
  supportsDeveloperRole: false,
365
365
  supportsReasoningEffort: false,
366
366
  maxTokensField: "max_tokens",
367
- thinkingFormat: model.publisher === "qwen" ? "qwen" : "openai",
367
+ thinkingFormat: model.publisher === "qwen" ? "qwen" : model.publisher === "zai-org" ? "zai" : "openai",
368
368
  },
369
369
  };
370
370
 
@@ -381,9 +381,6 @@ export function streamMaaS(
381
381
  if ("error" in event && event.error && typeof event.error === "object") {
382
382
  const err = event.error as any;
383
383
  err.model = model.id;
384
- if (typeof err.errorMessage === "string" && /^400\s*(status code)?\s*\(no body\)/i.test(err.errorMessage)) {
385
- err.errorMessage = `Vertex MaaS HTTP 400 (no body) for model "${apiModelId}". Not automatically treated as context overflow.`;
386
- }
387
384
  }
388
385
  stream.push(event);
389
386
  }