From f58675f577076657a1a7b2882b378ae996095b97 Mon Sep 17 00:00:00 2001 From: Daniel Chalef <131175+danielchalef@users.noreply.github.com> Date: Thu, 30 Oct 2025 08:10:12 -0700 Subject: [PATCH] conductor-checkpoint-msg_017fAeUG21Ym1EeofanFzFGa --- graphiti_core/llm_client/openai_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphiti_core/llm_client/openai_client.py b/graphiti_core/llm_client/openai_client.py index 8edc4f42..a586f9f0 100644 --- a/graphiti_core/llm_client/openai_client.py +++ b/graphiti_core/llm_client/openai_client.py @@ -99,10 +99,13 @@ class OpenAIClient(BaseOpenAIClient): verbosity: str | None = None, ): """Create a regular completion with JSON format.""" + # Reasoning models (gpt-5 family) don't support temperature + is_reasoning_model = model.startswith('gpt-5') or model.startswith('o1') or model.startswith('o3') + return await self.client.chat.completions.create( model=model, messages=messages, - temperature=temperature, + temperature=temperature if not is_reasoning_model else None, max_tokens=max_tokens, response_format={'type': 'json_object'}, )