mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update cookies.py to support HAR loading for OpenaiChat
This commit is contained in:
parent
66a305998d
commit
0ebc0d5e3e
1 changed files with 2 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ DOMAINS = [
|
||||||
"www.whiterabbitneo.com",
|
"www.whiterabbitneo.com",
|
||||||
"huggingface.co",
|
"huggingface.co",
|
||||||
"chat.reka.ai",
|
"chat.reka.ai",
|
||||||
|
"chatgpt.com"
|
||||||
]
|
]
|
||||||
|
|
||||||
if has_browser_cookie3 and os.environ.get('DBUS_SESSION_BUS_ADDRESS') == "/dev/null":
|
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 []
|
return []
|
||||||
user_data_dir = user_config_dir("g4f")
|
user_data_dir = user_config_dir("g4f")
|
||||||
cookie_file = os.path.join(user_data_dir, "Default", "Cookies")
|
cookie_file = os.path.join(user_data_dir, "Default", "Cookies")
|
||||||
return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name)
|
return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue