From ebf39480b6697d4d2e26b9a9a9cba053f4ae52fb Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Wed, 8 Oct 2025 22:46:16 -0400 Subject: [PATCH] urf --- llm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llm.py b/llm.py index d255a57..fbb05ca 100644 --- a/llm.py +++ b/llm.py @@ -36,9 +36,9 @@ class LLMClient: ) output = response["response"] elif self.PROVIDER == "openai": - response = self.openai_client.chat.completions.create( + response = self.openai_client.responses.create( model="gpt-4o-mini", - messages=[ + input=[ { "role": "system", "content": system_prompt, @@ -49,7 +49,7 @@ class LLMClient: }, ], ) - output = response.choices[0].message.content + output = response.output_text if __name__ == "__main__":