@howaboua/pi-codex-conversion 1.0.21 → 1.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-codex-conversion",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Codex-oriented tool and prompt adapter for pi coding agent",
5
5
  "type": "module",
6
6
  "repository": {
@@ -118,7 +118,6 @@ interface ResponsesBody {
118
118
  input: unknown;
119
119
  text: { verbosity: string };
120
120
  include: string[];
121
- max_output_tokens?: number;
122
121
  prompt_cache_key?: string;
123
122
  tool_choice: "auto";
124
123
  parallel_tool_calls: boolean;
@@ -527,9 +526,10 @@ function buildRequestBody<TApi extends Api>(model: Model<TApi>, context: Context
527
526
  parallel_tool_calls: true,
528
527
  };
529
528
 
530
- if (options?.maxTokens !== undefined) {
531
- body.max_output_tokens = options.maxTokens;
532
- }
529
+ // The Codex ChatGPT-backed endpoint rejects output-token cap fields with
530
+ // `Unsupported parameter: max_output_tokens`. Pi's branch summarizer passes
531
+ // `maxTokens`, so forwarding it breaks `/tree` summaries and extensions that
532
+ // use `ctx.navigateTree(..., { summarize: true })`.
533
533
 
534
534
  if ((options as { temperature?: number } | undefined)?.temperature !== undefined) {
535
535
  body.temperature = (options as { temperature?: number }).temperature;