need to set session
This commit is contained in:
@@ -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']}")
|
||||||
|
|||||||
Reference in New Issue
Block a user