anthropic.claude-3-haiku-20240307-v1:0

modified:   README.rst
	modified:   app.py
This commit is contained in:
Russell Ballestrini 2024-03-15 10:12:16 -04:00
parent f365e45821
commit 4037872e7e
2 changed files with 9 additions and 1 deletions

View file

@ -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-4, send a message with ``gpt-4`` 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 Mistral-tiny, send a message with ``mistral-tiny`` and include your prompt.
- For Mistral-small, send a message with ``mistral-small`` and include your prompt.

9
app.py
View file

@ -27,7 +27,7 @@ socketio = SocketIO(app, async_mode="eventlet")
cancellation_requests = {}
system_users = [
"anthropic.claude-v2",
"anthropic.claude-3-haiku-20240307-v1:0",
"anthropic.claude-3-sonnet-20240229-v1:0",
"gpt-3.5-turbo",
"gpt-4",
@ -262,6 +262,13 @@ def handle_message(data):
room=room.name,
)
if "claude-haiku" in data["message"]:
eventlet.spawn(
chat_claude,
data["username"],
room.name,
model_name="anthropic.claude-3-haiku-20240307-v1:0",
)
if "claude-sonnet" in data["message"]:
eventlet.spawn(chat_claude, data["username"], room.name)
if "gpt-3" in data["message"]: