SIGN IN SIGN UP

fix: streaming resource lock (#1879)

* fix: correct issue with handling lock during streaming

move locking for streaming into get_event_publisher call so it is locked and unlocked in the correct task for the streaming reponse

* fix: simplify exit stack management for create_chat_completion and create_completion

* fix: correct missing `async with` and format code

* fix: remove unnecessary explicit use of AsyncExitStack

fix: correct type hints for body_model

---------

Co-authored-by: Andrei <abetlen@gmail.com>
G
Graeme Power committed
e8f14ceff9b3279c67368d85f9457bb27168d126
Parent: 1d5f534
Committed by GitHub <noreply@github.com> on 1/8/2025, 9:46:43 PM