diff --git a/README.rst b/README.rst index 2b785bc..841be94 100644 --- a/README.rst +++ b/README.rst @@ -93,7 +93,8 @@ Interacting with Language Models To interact with the various language models, you can use the following commands within the chat: - For GPT-3, send a message with ``gpt-3`` and include your prompt. -- For GPT-4, 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-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. - For Claude-opus, send a message with ``claude-opus`` and include your prompt. diff --git a/app.py b/app.py index eafdf8a..29066bc 100644 --- a/app.py +++ b/app.py @@ -43,6 +43,7 @@ system_users = [ "gpt-3.5-turbo", "gpt-4", "gpt-4o", + "gpt-4o-mini", "gpt-4-1106-preview", "gpt-4-turbo-preview", "gpt-4-turbo", @@ -369,6 +370,13 @@ def handle_message(data): room.name, model_name="gpt-4o", ) + if "gpt-mini" in data["message"]: + gevent.spawn( + chat_gpt, + data["username"], + room.name, + model_name="gpt-4o-mini", + ) if "mistral-tiny" in data["message"]: gevent.spawn( chat_mistral,