@oh-my-pi/pi-ai 16.2.12 → 16.2.13

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,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.2.13] - 2026-07-01
6
+
7
+ ### Fixed
8
+
9
+ - Fixed pre-5.4 OpenAI Codex models (`gpt-5.1-codex`, `gpt-5.3-codex`, `gpt-5.3-codex-spark`) rejecting requests with `Unsupported parameter: 'reasoning.summary' is not supported with this model` by gating `reasoning.summary` behind the same gpt-5.4 wire floor as `reasoning.context: "all_turns"`.
10
+
5
11
  ## [16.2.12] - 2026-07-01
6
12
 
7
13
  ### Changed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-ai",
4
- "version": "16.2.12",
4
+ "version": "16.2.13",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@bufbuild/protobuf": "^2.12.0",
41
- "@oh-my-pi/pi-catalog": "16.2.12",
42
- "@oh-my-pi/pi-utils": "16.2.12",
43
- "@oh-my-pi/pi-wire": "16.2.12",
41
+ "@oh-my-pi/pi-catalog": "16.2.13",
42
+ "@oh-my-pi/pi-utils": "16.2.13",
43
+ "@oh-my-pi/pi-wire": "16.2.13",
44
44
  "arktype": "^2.2.0",
45
45
  "zod": "^4"
46
46
  },
@@ -1,5 +1,5 @@
1
1
  import type { Effort } from "@oh-my-pi/pi-catalog/effort";
2
- import { supportsAllTurnsReasoningContext } from "@oh-my-pi/pi-catalog/identity";
2
+ import { supportsAllTurnsReasoningContext, supportsCodexReasoningSummary } from "@oh-my-pi/pi-catalog/identity";
3
3
  import { requireSupportedEffort } from "@oh-my-pi/pi-catalog/model-thinking";
4
4
  import type { Api, Model } from "../../types";
5
5
 
@@ -85,7 +85,12 @@ function getReasoningConfig(model: Model<Api>, options: CodexRequestOptions): Re
85
85
  effort:
86
86
  options.reasoningEffort === "none" ? "none" : requireSupportedEffort(model, options.reasoningEffort as Effort),
87
87
  };
88
- if (options.reasoningSummary !== null) {
88
+ // `reasoning.summary` is accepted only from gpt-5.4 onward; earlier Codex ids
89
+ // (gpt-5.1-codex, gpt-5.3-codex, gpt-5.3-codex-spark) reject it with
90
+ // "Unsupported parameter: 'reasoning.summary' is not supported with this model".
91
+ // Mirrors the all_turns gate: an explicit summary is suppressed on unsupported
92
+ // ids, letting the server skip the human-readable summary stream.
93
+ if (options.reasoningSummary !== null && supportsCodexReasoningSummary(model.id)) {
89
94
  config.summary = options.reasoningSummary ?? "detailed";
90
95
  }
91
96
  return config;