Update chat function to use gpt-5-chat-latest model

This commit is contained in:
Joakim Hellsén 2025-08-17 01:51:54 +02:00
commit 71b3f47496

View file

@ -38,7 +38,7 @@ def chat(user_message: str, openai_client: OpenAI) -> str | None:
The response from the AI model.
"""
completion: ChatCompletion = openai_client.chat.completions.create(
model="gpt-4.1",
model="gpt-5-chat-latest",
messages=[
{
"role": "system",