gpt-4o-2024-08-06 is the cheapest version of gpt-4 yet!
modified: README.rst modified: app.py
This commit is contained in:
parent
5bc19e5488
commit
b0fa97ffc3
2 changed files with 12 additions and 1 deletions
|
|
@ -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-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, 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 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-haiku, send a message with ``claude-haiku`` and include your prompt.
|
||||||
- For Claude-sonnet, send a message with ``claude-sonnet`` and include your prompt.
|
- For Claude-sonnet, send a message with ``claude-sonnet`` and include your prompt.
|
||||||
|
|
|
||||||
12
app.py
12
app.py
|
|
@ -47,6 +47,7 @@ system_users = [
|
||||||
"gpt-4",
|
"gpt-4",
|
||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
"gpt-4o-mini",
|
"gpt-4o-mini",
|
||||||
|
"gpt-4o-2024-08-06",
|
||||||
"gpt-4-1106-preview",
|
"gpt-4-1106-preview",
|
||||||
"gpt-4-turbo-preview",
|
"gpt-4-turbo-preview",
|
||||||
"gpt-4-turbo",
|
"gpt-4-turbo",
|
||||||
|
|
@ -430,13 +431,22 @@ def handle_message(data):
|
||||||
)
|
)
|
||||||
if "gpt-3" in data["message"]:
|
if "gpt-3" in data["message"]:
|
||||||
gevent.spawn(chat_gpt, data["username"], room.name)
|
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(
|
gevent.spawn(
|
||||||
chat_gpt,
|
chat_gpt,
|
||||||
data["username"],
|
data["username"],
|
||||||
room.name,
|
room.name,
|
||||||
model_name="gpt-4o",
|
model_name="gpt-4o",
|
||||||
)
|
)
|
||||||
|
|
||||||
if "gpt-mini" in data["message"]:
|
if "gpt-mini" in data["message"]:
|
||||||
gevent.spawn(
|
gevent.spawn(
|
||||||
chat_gpt,
|
chat_gpt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue