fix comment

This commit is contained in:
kowyo 2025-10-05 12:17:08 +08:00
parent 619ab42c93
commit d9851d2598

View file

@ -184,12 +184,12 @@ class OllamaChatConfig(BaseConfig):
):
if value.get("json_schema") and value["json_schema"].get("schema"):
optional_params["format"] = value["json_schema"]["schema"]
### FUNCTION CALLING LOGIC ###
if param == "reasoning_effort" and value is not None:
if model.startswith("gpt-oss"):
optional_params["think"] = value
else:
optional_params["think"] = True
### FUNCTION CALLING LOGIC ###
if param == "tools":
## CHECK IF MODEL SUPPORTS TOOL CALLING ##
try: