mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(ollama_chat.py): explicitly state if ollama call is streaming or not
This commit is contained in:
parent
3db9830d4b
commit
80eb8d0eae
1 changed files with 6 additions and 1 deletions
|
|
@ -146,7 +146,12 @@ def get_ollama_response(
|
|||
optional_params[k] = v
|
||||
|
||||
stream = optional_params.pop("stream", False)
|
||||
data = {"model": model, "messages": messages, "options": optional_params}
|
||||
data = {
|
||||
"model": model,
|
||||
"messages": messages,
|
||||
"options": optional_params,
|
||||
"stream": stream,
|
||||
}
|
||||
## LOGGING
|
||||
logging_obj.pre_call(
|
||||
input=None,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue