mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix: update 'think' parameter assignment to use provided value in transformation.py
This commit is contained in:
parent
eecb2ba77a
commit
bb3829b697
2 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ class OllamaChatConfig(BaseConfig):
|
|||
optional_params["format"] = value["json_schema"]["schema"]
|
||||
### FUNCTION CALLING LOGIC ###
|
||||
if param == "reasoning_effort" and value is not None:
|
||||
optional_params["think"] = True
|
||||
optional_params["think"] = value
|
||||
if param == "tools":
|
||||
## CHECK IF MODEL SUPPORTS TOOL CALLING ##
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class OllamaConfig(BaseConfig):
|
|||
elif param == "stop":
|
||||
optional_params["stop"] = value
|
||||
elif param == "reasoning_effort" and value is not None:
|
||||
optional_params["think"] = True
|
||||
optional_params["think"] = value
|
||||
elif param == "response_format" and isinstance(value, dict):
|
||||
if value["type"] == "json_object":
|
||||
optional_params["format"] = "json"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue