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