mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 11:07:39 +00:00
(fix) HF api + streaming
This commit is contained in:
@@ -4367,6 +4367,7 @@ class CustomStreamWrapper:
|
||||
|
||||
def handle_huggingface_chunk(self, chunk):
|
||||
try:
|
||||
chunk = chunk.decode("utf-8") # DO NOT REMOVE this: This is required for HF inference API + Streaming
|
||||
text = ""
|
||||
is_finished = False
|
||||
finish_reason = ""
|
||||
|
||||
Reference in New Issue
Block a user