mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: add 'think' parameter handling in ollama_chat.py
This commit is contained in:
parent
4f33bc4e46
commit
e30b716ba8
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ def get_ollama_response( # noqa: PLR0915
|
|||
stream = optional_params.pop("stream", False)
|
||||
format = optional_params.pop("format", None)
|
||||
keep_alive = optional_params.pop("keep_alive", None)
|
||||
think = optional_params.pop("think", None)
|
||||
function_name = optional_params.pop("function_name", None)
|
||||
tools = optional_params.pop("tools", None)
|
||||
|
||||
|
|
@ -98,6 +99,8 @@ def get_ollama_response( # noqa: PLR0915
|
|||
data["tools"] = tools
|
||||
if keep_alive is not None:
|
||||
data["keep_alive"] = keep_alive
|
||||
if think is not None:
|
||||
data["think"] = think
|
||||
## LOGGING
|
||||
logging_obj.pre_call(
|
||||
input=None,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue