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>
This commit is contained in:
Tal
2025-02-18 11:50:48 +02:00
committed by GitHub
parent 0317951e32
commit 35059cadf7

View File

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