Skip to content

[BUG] #144

@robodevchampion

Description

@robodevchampion

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:

  1. Python 3.8/3.9
  2. Using Pycharm
  3. 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

Provide information on each section, or your issue will be closed.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions