gpt-4o-mini as gpt-mini alias
modified: README.rst modified: app.py
This commit is contained in:
parent
da5a8cbcfa
commit
698455fb40
2 changed files with 10 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
8
app.py
8
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue