返回提交历史
Modified
g4f/cookies.py
+2
-1
XFEstudio/gpt4free
Update cookies.py to support HAR loading for OpenaiChat
0ebc0d5e
代码差异
1 个文件
+2
-1
@@ -34,6 +34,7 @@ DOMAINS = [
34
34
"www.whiterabbitneo.com",
35
35
"huggingface.co",
36
36
"chat.reka.ai",
37
"chatgpt.com"
37
38
]
38
39
39
40
if has_browser_cookie3 and os.environ.get('DBUS_SESSION_BUS_ADDRESS') == "/dev/null":
@@ -180,4 +181,4 @@ def _g4f(domain_name: str) -> list:
180
181
return []
181
182
user_data_dir = user_config_dir("g4f")
182
183
cookie_file = os.path.join(user_data_dir, "Default", "Cookies")
183
return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name)
184
return [] if not os.path.exists(cookie_file) else chrome(cookie_file, domain_name)