forked from phoenix/litellm-mirror
fix(utils.py): fix azure streaming logic
This commit is contained in:
parent
fa8a9568aa
commit
b38c09c87f
2 changed files with 7 additions and 9 deletions
|
@ -8842,11 +8842,11 @@ class CustomStreamWrapper:
|
|||
Output parse <s> / </s> special tokens for sagemaker + hf streaming.
|
||||
"""
|
||||
hold = False
|
||||
# if (
|
||||
# self.custom_llm_provider != "huggingface"
|
||||
# and self.custom_llm_provider != "sagemaker"
|
||||
# ):
|
||||
# return hold, chunk
|
||||
if (
|
||||
self.custom_llm_provider != "huggingface"
|
||||
and self.custom_llm_provider != "sagemaker"
|
||||
):
|
||||
return hold, chunk
|
||||
|
||||
if finish_reason:
|
||||
for token in self.special_tokens:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue