From 416517b8e223c91b29558e681f886ee95be5459a Mon Sep 17 00:00:00 2001 From: Mohammed Rabil Date: Sun, 5 May 2024 18:35:46 +0530 Subject: [PATCH] refactor: Update role from "system" to "assistant" in message_handler --- groq_chat/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groq_chat/handlers.py b/groq_chat/handlers.py index c3c9ab1..a60ae26 100644 --- a/groq_chat/handlers.py +++ b/groq_chat/handlers.py @@ -150,7 +150,7 @@ async def message_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> ) context.user_data["messages"] = context.user_data.get("messages", []) + [ { - "role": "system", + "role": "assistant", "content": full_output_message, } ]