Skip to content

Conversation

@joaovbsevero
Copy link

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

Changes being requested

Properly call httpx AsyncClient aclose method.

Additional context & links

As of now, there is an issue when using AsyncOpenAI in AWS Lambdas because the event loop is closed and after that the aclose() coroutine is scheduled.
By checking if the loop is running before actually scheduling the coroutine, the issue is resolved.

@joaovbsevero joaovbsevero requested a review from a team as a code owner February 12, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants