-
Notifications
You must be signed in to change notification settings - Fork 439
Description
Describe the bug
Giving below error, previously it worked correct :
Traceback (most recent call last): File "D:/project/my-app-be/data_generate.py", line 6, in <module> resp = api.send_message('Hello, world!') File "D:\project\my-app-be\venv\lib\site-packages\pyChatGPT\pyChatGPT.py", line 460, in send_message conversation_id = matches.group() AttributeError: 'NoneType' object has no attribute 'group'
To Reproduce
Steps to reproduce the behavior:
- Python 3.8/3.9
- Using Pycharm
- Here is the code
`
from pyChatGPT import ChatGPT
session_token = 'Actual token here' # __Secure-next-auth.session-token
cookie from https://chat.openai.com/chat
api = ChatGPT(session_token) # auth with session token
resp = api.send_message('Hello, world!')
print(resp['message'])
api.reset_conversation() # reset the conversation
api.clear_conversations() # clear all conversations
api.refresh_chat_page() # refresh the chat page`
5. Error already pasted above
6. Installed using pip install pychatgpt
Expected behavior
Should work fine