Skip to content

Fix response annotation event typing#3422

Open
fengjikui wants to merge 1 commit into
openai:mainfrom
fengjikui:codex/response-annotation-type
Open

Fix response annotation event typing#3422
fengjikui wants to merge 1 commit into
openai:mainfrom
fengjikui:codex/response-annotation-type

Conversation

@fengjikui

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

  • Type ResponseOutputTextAnnotationAddedEvent.annotation as the existing Annotation union instead of object.
  • Add a regression test that parses a url_citation annotation event into AnnotationURLCitation.

Additional context & links

Addresses #3419.

Validation:

  • uv run pytest tests/test_models.py -q -k response_output_text_annotation_added_event_annotation_type
  • uv run pytest tests/test_models.py -q
  • uv run ruff check src/openai/types/responses/response_output_text_annotation_added_event.py tests/test_models.py
  • uv run scripts/run-pyright src/openai/types/responses/response_output_text_annotation_added_event.py tests/test_models.py

@fengjikui fengjikui requested a review from a team as a code owner June 22, 2026 19:24
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.

2 participants