mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor(azure.py): enabling async streaming with aiohttp
This commit is contained in:
parent
c053782d96
commit
e12bff6d7f
5 changed files with 35 additions and 15 deletions
|
@ -442,7 +442,7 @@ def completion(
|
|||
logging_obj=logging,
|
||||
acompletion=acompletion
|
||||
)
|
||||
if "stream" in optional_params and optional_params["stream"] == True:
|
||||
if optional_params.get("stream", False) and acompletion is False:
|
||||
response = CustomStreamWrapper(response, model, custom_llm_provider=custom_llm_provider, logging_obj=logging)
|
||||
return response
|
||||
## LOGGING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue