fix claude

modified:   app.py
This commit is contained in:
Russell Ballestrini 2023-12-15 10:00:20 -05:00
parent 6c0a09e0c2
commit 2b7999a857

3
app.py
View file

@ -332,6 +332,9 @@ def chat_claude(username, room_name, message, model_name="anthropic.claude-v1"):
else:
chat_history += f"Human: {msg.username}: {msg.content}\n\n"
# prompt must end with "Assistant:" turn.
chat_history += "Assistant:"
# Initialize the Bedrock client using boto3 and profile name.
if app.config.get("PROFILE_NAME"):
session = boto3.Session(profile_name=app.config["PROFILE_NAME"])