From b0fa97ffc31c432be2ed7060254547b078fb580b Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 7 Aug 2024 18:59:18 -0400 Subject: [PATCH] gpt-4o-2024-08-06 is the cheapest version of gpt-4 yet! modified: README.rst modified: app.py --- README.rst | 1 + app.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 1e0a3fb..7f8faf0 100644 --- a/README.rst +++ b/README.rst @@ -94,6 +94,7 @@ To interact with the various language models, you can use the following commands - For GPT-3, send a message with ``gpt-3`` and include your prompt. - For GPT-4o, send a message with ``gpt-4`` and include your prompt. +- For GPT-4o cheapest version, send a message with ``gpt-4o-2024-08-06`` and include your prompt. - For GPT-4o-mini, send a message with ``gpt-mini`` and include your prompt. - For Claude-haiku, send a message with ``claude-haiku`` and include your prompt. - For Claude-sonnet, send a message with ``claude-sonnet`` and include your prompt. diff --git a/app.py b/app.py index e434422..1182057 100644 --- a/app.py +++ b/app.py @@ -47,6 +47,7 @@ system_users = [ "gpt-4", "gpt-4o", "gpt-4o-mini", + "gpt-4o-2024-08-06", "gpt-4-1106-preview", "gpt-4-turbo-preview", "gpt-4-turbo", @@ -430,13 +431,22 @@ def handle_message(data): ) if "gpt-3" in data["message"]: gevent.spawn(chat_gpt, data["username"], room.name) - if "gpt-4" in data["message"]: + + if "gpt-4o-2024-08-06" in data["message"]: + gevent.spawn( + chat_gpt, + data["username"], + room.name, + model_name="gpt-4o-2024-08-06", + ) + elif "gpt-4" in data["message"]: gevent.spawn( chat_gpt, data["username"], room.name, model_name="gpt-4o", ) + if "gpt-mini" in data["message"]: gevent.spawn( chat_gpt,