jack 1 개월 전
부모
커밋
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