Skip to content

Commit

Permalink
Use gpt-4o (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb authored Jun 12, 2024
1 parent 118a1ce commit 56aff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samuelcolvin_aicli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 56aff26

Please sign in to comment.