modified: app.py
This commit is contained in:
parent
14d98018e1
commit
d7f720997f
1 changed files with 1 additions and 1 deletions
2
app.py
2
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue