Spaces:
Runtime error
Runtime error
FIX: Use "assistant" role instead of "system"
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def bot_respond(user_query, chat_messages: list):
|
|
73 |
|
74 |
chat_messages.pop()
|
75 |
chat_messages.append({"role": "user", "content": user_query})
|
76 |
-
chat_messages.append({"role": "
|
77 |
|
78 |
return text, context_prompt
|
79 |
|
|
|
73 |
|
74 |
chat_messages.pop()
|
75 |
chat_messages.append({"role": "user", "content": user_query})
|
76 |
+
chat_messages.append({"role": "assistant", "content": text})
|
77 |
|
78 |
return text, context_prompt
|
79 |
|