From 2b7999a857400c64deca856e565d6ea362559ec5 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 15 Dec 2023 10:00:20 -0500 Subject: [PATCH] fix claude modified: app.py --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 169fbff..69d1bd3 100644 --- a/app.py +++ b/app.py @@ -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"])