Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion litellm/llms/ollama/chat/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def map_openai_params(
if model.startswith("gpt-oss"):
optional_params["think"] = value
else:
optional_params["think"] = True
optional_params["think"] = value in {"low", "medium", "high"}
### FUNCTION CALLING LOGIC ###
if param == "tools":
## CHECK IF MODEL SUPPORTS TOOL CALLING ##
Expand Down
2 changes: 1 addition & 1 deletion litellm/llms/ollama/completion/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def map_openai_params(
if model.startswith("gpt-oss"):
optional_params["think"] = value
else:
optional_params["think"] = True
optional_params["think"] = value in {"low", "medium", "high"}
elif param == "response_format" and isinstance(value, dict):
if value["type"] == "json_object":
optional_params["format"] = "json"
Expand Down
Loading