Skip to content

fix(types): make ResponseOutputMessageParam.id optional - #3015

Open
theamodhshetty wants to merge 1 commit into
openai:mainfrom
theamodhshetty:codex/fix-response-output-message-id-optional
Open

fix(types): make ResponseOutputMessageParam.id optional#3015
theamodhshetty wants to merge 1 commit into
openai:mainfrom
theamodhshetty:codex/fix-response-output-message-id-optional

Conversation

@theamodhshetty

Copy link
Copy Markdown

Summary

  • make ResponseOutputMessageParam.id explicitly optional with NotRequired[str]
  • add a focused regression test showing an assistant message can be typed without an OpenAI-generated id

Testing

  • ./.venv/bin/pytest tests/test_response_output_message_param.py -n0
  • ./.venv/bin/pyright -p pyproject.toml src/openai/types/responses/response_output_message_param.py tests/test_response_output_message_param.py
  • ./.venv/bin/mypy src/openai/types/responses/response_output_message_param.py
  • ./.venv/bin/ruff check src/openai/types/responses/response_output_message_param.py tests/test_response_output_message_param.py

Closes #2501.

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.

Make ResponseOutputMessageParam.id genuinely optional and support message payloads without an OpenAI‑generated ID

1 participant