jack пре 2 месеци
родитељ
комит
9902dc6cf6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/core/runner/llm_backend.py

+ 1 - 1
app/core/runner/llm_backend.py

@@ -71,7 +71,7 @@ class LLMBackend:
             chat_params["modalities"] = modalities
             chat_params["modalities"] = modalities
         if temperature:
         if temperature:
             chat_params["temperature"] = temperature
             chat_params["temperature"] = temperature
-        if top_p and temperature == None:
+        if top_p and temperature is None:
             chat_params["top_p"] = top_p
             chat_params["top_p"] = top_p
         if tools:
         if tools:
             chat_params["tools"] = tools
             chat_params["tools"] = tools