mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) Ollama use new streaming format
This commit is contained in:
parent
960481a540
commit
1a7ffbe7b8
1 changed files with 1 additions and 1 deletions
|
@ -1040,7 +1040,7 @@ def completion(
|
|||
else:
|
||||
response_string = ""
|
||||
for chunk in generator:
|
||||
response_string+=chunk['choices'][0]['delta']['content']
|
||||
response_string+=chunk['content']
|
||||
|
||||
## RESPONSE OBJECT
|
||||
model_response["choices"][0]["message"]["content"] = response_string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue