From 8b8d7ad5f8fee9fd463bbdad66a09ebf95e9a286 Mon Sep 17 00:00:00 2001 From: Shriniwas Ramesh Suram <82992833+Shriniwas410@users.noreply.github.com> Date: Tue, 23 Jun 2026 14:13:40 -0400 Subject: [PATCH] fix(types): type ResponseOutputTextAnnotationAddedEvent.annotation as Annotation union --- .../responses/response_output_text_annotation_added_event.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openai/types/responses/response_output_text_annotation_added_event.py b/src/openai/types/responses/response_output_text_annotation_added_event.py index b9dc262150..090fdb7f72 100644 --- a/src/openai/types/responses/response_output_text_annotation_added_event.py +++ b/src/openai/types/responses/response_output_text_annotation_added_event.py @@ -3,6 +3,7 @@ from typing_extensions import Literal from ..._models import BaseModel +from .response_output_text import Annotation __all__ = ["ResponseOutputTextAnnotationAddedEvent"] @@ -10,8 +11,8 @@ class ResponseOutputTextAnnotationAddedEvent(BaseModel): """Emitted when an annotation is added to output text content.""" - annotation: object - """The annotation object being added. (See annotation schema for details.)""" + annotation: Annotation + """The annotation object being added.""" annotation_index: int """The index of the annotation within the content part."""