jack 3 周之前
父节点
当前提交
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
         if temperature:
             chat_params["temperature"] = temperature
-        if top_p and temperature == None:
+        if top_p and temperature is None:
             chat_params["top_p"] = top_p
         if tools:
             chat_params["tools"] = tools