Skip to content

fix: allow assistant messages in Responses input types - #3722

Open
medisean wants to merge 1 commit into
openai:mainfrom
medisean:codex/fix-response-assistant-input
Open

fix: allow assistant messages in Responses input types#3722
medisean wants to merge 1 commit into
openai:mainfrom
medisean:codex/fix-response-assistant-input

Conversation

@medisean

Copy link
Copy Markdown

Closes #3544

The Responses API accepts client-authored assistant turns without an id or status, but the generated ResponseInputItemParam type rejected the assistant role. This updates the generated type and OpenAPI schema enum so valid assistant input messages are accepted.

Validation:

  • python3 -m compileall -q src
  • `git diff --check

@medisean
medisean marked this pull request as ready for review August 23, 2026 08:46
@medisean
medisean requested a review from a team as a code owner August 23, 2026 08:46
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.

Responses API: sending a client-authored assistant turn requires either a fake message id or a # type: ignore

1 participant