Skip to content

Commit

Permalink
fix(openai): implement aclose on async stream responses
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp committed Feb 12, 2025
1 parent cd8c118 commit beb1d98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions langfuse/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,3 +977,10 @@ async def close(self) -> None:
Automatically called if the response body is read to completion.
"""
await self.response.close()

async def aclose(self) -> None:
"""Close the response and release the connection.
Automatically called if the response body is read to completion.
"""
await self.response.aclose()

0 comments on commit beb1d98

Please sign in to comment.