From d7f720997f9bcbe9ca4f73da3c0b3045a02a9f07 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Thu, 2 Nov 2023 08:21:59 -0400 Subject: [PATCH] modified: app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 80442ef..cac4dcb 100644 --- a/app.py +++ b/app.py @@ -275,7 +275,7 @@ def chat_gpt(username, room, message, model_name="gpt-3.5-turbo"): for msg in reversed(last_messages) ] - chat_history.append({"role": "user", "content": message}) + chat_history.append({"role": "user", "content": f"{message}\n\n{model_name}: "}) buffer = "" # Content buffer for accumulating the chunks