mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
fix(streaming): extend role-only chunk preservation to azure_ai provider
This commit is contained in:
parent
63eb58a82b
commit
5abd5851e5
1 changed files with 1 additions and 1 deletions
|
|
@ -839,7 +839,7 @@ class CustomStreamWrapper:
|
|||
not self.sent_first_chunk
|
||||
and hasattr(model_response.choices[0].delta, "role")
|
||||
and model_response.choices[0].delta.role is not None
|
||||
and self.custom_llm_provider == "azure"
|
||||
and self.custom_llm_provider in ("azure", "azure_ai")
|
||||
)
|
||||
):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue