need to set session

This commit is contained in:
Juni
2022-12-05 14:45:54 -05:00
parent bccfc2c83a
commit dfb2d00607

View File

@@ -17,8 +17,8 @@ class ChatGpt(commands.Cog):
config = await self.setCredentials(ctx) config = await self.setCredentials(ctx)
chatbot = Chatbot(config, conversation_id=None) chatbot = Chatbot(config, conversation_id=None)
"""chatbot.reset_chat() chatbot.reset_chat()
chatbot.refresh_session()""" chatbot.refresh_session()
resp = chatbot.get_chat_response(msg, output="text") resp = chatbot.get_chat_response(msg, output="text")
await ctx.send(f"{resp['message']}") await ctx.send(f"{resp['message']}")