diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2024-10-22 23:28:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 23:28:18 +0200 |
commit | e2696648923be431c7aca77cfc5f94474eec6e1c (patch) | |
tree | 70a6e178007b4956fcf2bd8b25a0aa858a2956bc /g4f | |
parent | Merge pull request #2281 from foxfire52/main (diff) | |
parent | Update cookies.py to support HAR loading for OpenaiChat (diff) | |
download | gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar.gz gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar.bz2 gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar.lz gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar.xz gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.tar.zst gpt4free-e2696648923be431c7aca77cfc5f94474eec6e1c.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/cookies.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/cookies.py b/g4f/cookies.py index 0a25c41e..8d535ce7 100644 --- a/g4f/cookies.py +++ b/g4f/cookies.py @@ -34,6 +34,7 @@ DOMAINS = [ "www.whiterabbitneo.com", "huggingface.co", "chat.reka.ai", + "chatgpt.com" ] if has_browser_cookie3 and os.environ.get('DBUS_SESSION_BUS_ADDRESS') == "/dev/null": @@ -180,4 +181,4 @@ def _g4f(domain_name: str) -> list: return [] user_data_dir = user_config_dir("g4f") cookie_file = os.path.join(user_data_dir, "Default", "Cookies") - return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name)
\ No newline at end of file + return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name) |