mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(ollama_chat.py): fix passing assistant message with tool call param
Fixes https://github.com/BerriAI/litellm/issues/5319
This commit is contained in:
parent
e45ec0ef46
commit
2dd616bad0
4 changed files with 53 additions and 8 deletions
|
@ -2464,7 +2464,7 @@ def completion(
|
|||
model_response=model_response,
|
||||
encoding=encoding,
|
||||
)
|
||||
if acompletion is True or optional_params.get("stream", False) == True:
|
||||
if acompletion is True or optional_params.get("stream", False) is True:
|
||||
return generator
|
||||
|
||||
response = generator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue