mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(huggingface_restapi.py): return streamed response correctly
This commit is contained in:
parent
86886de9d8
commit
5f9e141d1e
2 changed files with 3 additions and 6 deletions
|
@ -631,11 +631,8 @@ class Huggingface(BaseLLM):
|
|||
logging_obj=logging_obj,
|
||||
)
|
||||
|
||||
async def generator():
|
||||
async for transformed_chunk in streamwrapper:
|
||||
yield transformed_chunk
|
||||
|
||||
return generator()
|
||||
async for transformed_chunk in streamwrapper:
|
||||
yield transformed_chunk
|
||||
|
||||
def embedding(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue