XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update cookies.py to support HAR loading for OpenaiChat

0ebc0d5e
Amynov Islam Methyl Ogly <karasiq.gh.cru5k@simplelogin.co>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/cookies.py +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)