jack hace 1 día
padre
commit
4ea1bc1626
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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,
         modalities=None,
     ) -> ChatCompletion | Stream[ChatCompletionChunk]:
+        if any(model.startswith(prefix) for prefix in ["o1", "o3", "gpt-5"]):
+            temperature = None
+            top_p = None
         chat_params = {
             "messages": messages,
             "model": model,