jack 1 天之前
父節點
當前提交
4ea1bc1626
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/core/runner/llm_backend.py

+ 3 - 0
app/core/runner/llm_backend.py

@@ -31,6 +31,9 @@ class LLMBackend:
         audio=None,
         audio=None,
         modalities=None,
         modalities=None,
     ) -> ChatCompletion | Stream[ChatCompletionChunk]:
     ) -> ChatCompletion | Stream[ChatCompletionChunk]:
+        if any(model.startswith(prefix) for prefix in ["o1", "o3", "gpt-5"]):
+            temperature = None
+            top_p = None
         chat_params = {
         chat_params = {
             "messages": messages,
             "messages": messages,
             "model": model,
             "model": model,