jack hai 6 meses
pai
achega
27dd1bd4ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
         if temperature:
             chat_params["temperature"] = temperature
-        if top_p:
+        if top_p and temperature == None:
             chat_params["top_p"] = top_p
         if tools:
             chat_params["tools"] = tools