From dfb2d006075aab28ed36dbdb7a8c8e3c70322819 Mon Sep 17 00:00:00 2001 From: Juni Date: Mon, 5 Dec 2022 14:45:54 -0500 Subject: [PATCH] need to set session --- chatGpt/chatgpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatGpt/chatgpt.py b/chatGpt/chatgpt.py index bdf84b8..477b269 100644 --- a/chatGpt/chatgpt.py +++ b/chatGpt/chatgpt.py @@ -17,8 +17,8 @@ class ChatGpt(commands.Cog): config = await self.setCredentials(ctx) chatbot = Chatbot(config, conversation_id=None) - """chatbot.reset_chat() - chatbot.refresh_session()""" + chatbot.reset_chat() + chatbot.refresh_session() resp = chatbot.get_chat_response(msg, output="text") await ctx.send(f"{resp['message']}")