modified: app.py

This commit is contained in:
Russell Ballestrini 2023-11-02 08:21:59 -04:00
parent 14d98018e1
commit d7f720997f

2
app.py
View file

@ -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