fix: update 'think' parameter assignment to use provided value in transformation.py

This commit is contained in:
Kowyo 2025-10-04 02:50:00 +00:00
parent eecb2ba77a
commit bb3829b697
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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"