From 56aff269b70d52a4712d9e9f6b092466066f0fba Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:13:27 -0500 Subject: [PATCH] Use gpt-4o (#9) --- samuelcolvin_aicli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samuelcolvin_aicli.py b/samuelcolvin_aicli.py index c93bae6..f2eaa8f 100644 --- a/samuelcolvin_aicli.py +++ b/samuelcolvin_aicli.py @@ -16,7 +16,7 @@ from rich.syntax import Syntax from rich.text import Text -__version__ = '0.7.0' +__version__ = '0.8.0' class SimpleCodeBlock(CodeBlock): @@ -121,7 +121,7 @@ def cli() -> int: def ask_openai(client: openai.OpenAI, messages: list[dict[str, str]], stream: bool, console: Console) -> str: with Status('[dim]Working on it…[/dim]', console=console): - response = client.chat.completions.create(model='gpt-4', messages=messages, stream=stream) + response = client.chat.completions.create(model='gpt-4o', messages=messages, stream=stream) console.print('\nResponse:', style='green') if stream: