Skip to content

fix: accept Magpie output token compatibility hints - #15

Merged
reonokiy merged 1 commit into
mainfrom
fix/magpie-output-token-compatibility
Oct 10, 2026
Merged

reonokiy merged 1 commit into
mainfrom
fix/magpie-output-token-compatibility

Conversation

@reonokiy

Copy link
Copy Markdown
Owner

Magpie sends max_output_tokens to the public Responses endpoint, which currently rejects the request with HTTP 422 before contacting Codex. Accept positive unsigned 64-bit integers or null so Claude Code can use this gateway through Magpie without a separate adapter. Reject zero and invalid types, and retain strict rejection of other unknown fields.

Codex has no corresponding output-token limit parameter. This value is a documented compatibility hint: it is neither forwarded nor enforced, and callers must not rely on it for a hard generation limit.

Adds streaming and nonstreaming tool-call regression coverage, updates the official SDK parameter contract and audit, and documents direct Magpie configuration.

Validation:

  • Gateway regression suite: 55 passed, 6 opt-in tests skipped.
  • Official OpenAI SDK parameter suite: 64 passed, covering standard and Responses Lite models.
  • Formatting and diff checks passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T09:01:35.922746Z e4ecf04 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@reonokiy
reonokiy merged commit 3d4b974 into main Oct 10, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant