Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #144

Open
robodevchampion opened this issue Apr 20, 2023 · 0 comments
Open

[BUG] #144

robodevchampion opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@robodevchampion
Copy link

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.

@robodevchampion robodevchampion added the bug Something isn't working label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants