mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(fix) proxy_server convert chunk to dict()
This commit is contained in:
parent
8ba438b3a2
commit
91e6ac36c3
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ def data_generator(response):
|
|||
print_verbose("inside generator")
|
||||
for chunk in response:
|
||||
print_verbose(f"returned chunk: {chunk}")
|
||||
yield f"data: {json.dumps(chunk)}\n\n"
|
||||
yield f"data: {json.dumps(chunk.dict())}\n\n"
|
||||
|
||||
|
||||
def litellm_completion(*args, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue