Antonio Cheong commited on
Commit
5b87656
·
1 Parent(s): 6c8b6a0
Files changed (1) hide show
  1. src/EdgeGPT.py +3 -2
src/EdgeGPT.py CHANGED
@@ -232,7 +232,8 @@ class Chatbot:
232
  """
233
 
234
  def __init__(self, cookiePath: str = "") -> None:
235
- self.chat_hub: ChatHub = ChatHub(Conversation(cookiePath))
 
236
 
237
  async def ask(self, prompt: str) -> dict:
238
  """
@@ -260,7 +261,7 @@ class Chatbot:
260
  Reset the conversation
261
  """
262
  await self.close()
263
- self.chat_hub = ChatHub(Conversation())
264
 
265
 
266
  def get_input(prompt):
 
232
  """
233
 
234
  def __init__(self, cookiePath: str = "") -> None:
235
+ self.cookiePath: str = cookiePath
236
+ self.chat_hub: ChatHub = ChatHub(Conversation(self.cookiePath))
237
 
238
  async def ask(self, prompt: str) -> dict:
239
  """
 
261
  Reset the conversation
262
  """
263
  await self.close()
264
+ self.chat_hub = ChatHub(Conversation(self.cookiePath))
265
 
266
 
267
  def get_input(prompt):