ryuseisan / auto-chatgpt

Automate interaction with the browser version of ChatGPT.
MIT License
54 stars 11 forks source link

Fix auto login (#32) #33

Closed ryuseisan closed 1 year ago

ryuseisan commented 1 year ago

Title

Fix auto login issue introduced by login page update (#32)

Background

The auto-login feature ceased to function after a recent update to the login page. This change addresses that issue.

Changes

  1. autochatgpt/login.py

    • Adjusted to the new elements on the updated login page.
  2. autochatgpt/chatgptbot.py

    • Removed the auto-login feature in the constructor. Users are now expected to use an explicit login method.
    • Temporarily deprecated the get_user_prompt method.
  3. examples/autochat.ipynb

    • Added sample code to demonstrate the new auto_login method, reflecting the above changes.
  4. tests/test_chatgptbot.py

    • Modified the test codes to reflect changes in autochatgpt/chatgptbot.py.

Impacts