diff --git a/pr_agent/algo/ai_handlers/litellm_ai_handler.py b/pr_agent/algo/ai_handlers/litellm_ai_handler.py index 22a0c096..b22b834e 100644 --- a/pr_agent/algo/ai_handlers/litellm_ai_handler.py +++ b/pr_agent/algo/ai_handlers/litellm_ai_handler.py @@ -227,7 +227,7 @@ class LiteLLMAIHandler(BaseAiHandler): } # Add temperature only if model supports it - if model not in self.no_support_temperature_models or get_settings().config.custom_reasoning_model: + if model not in self.no_support_temperature_models and not get_settings().config.custom_reasoning_model: kwargs["temperature"] = temperature if get_settings().litellm.get("enable_callbacks", False):