From 35059cadf7fadc67aedb78f6ad57982c42783629 Mon Sep 17 00:00:00 2001 From: Tal Date: Tue, 18 Feb 2025 11:50:48 +0200 Subject: [PATCH] Update pr_agent/algo/ai_handlers/litellm_ai_handler.py Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com> --- pr_agent/algo/ai_handlers/litellm_ai_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):