diff --git a/src/openai/types/beta/assistant_stream_event.py b/src/openai/types/beta/assistant_stream_event.py index 41d3a0c5ea..6b5dbcc639 100644 --- a/src/openai/types/beta/assistant_stream_event.py +++ b/src/openai/types/beta/assistant_stream_event.py @@ -12,6 +12,14 @@ from .threads.runs.run_step import RunStep from .threads.message_delta_event import MessageDeltaEvent from .threads.runs.run_step_delta_event import RunStepDeltaEvent +from typing_extensions import Literal, Union + +class ToolCall(BaseModel): + id: str + type: str # <-- Make this a generic string instead of strict Literal + function: Optional[FunctionCall] = None + # Add other fields if present + __all__ = [ "AssistantStreamEvent",