diff --git a/src/openai/_streaming.py b/src/openai/_streaming.py index 45c13cc11d..a15aa9f7de 100644 --- a/src/openai/_streaming.py +++ b/src/openai/_streaming.py @@ -238,6 +238,10 @@ async def close(self) -> None: """ await self.response.aclose() + async def aclose(self) -> None: + """Alias for :meth:`close`, following the standard Python async convention.""" + await self.close() + class ServerSentEvent: def __init__(