Skip to content

Commit e269664

Browse files
authored
Merge pull request #2282 from Karasiq/patch-1
Update cookies.py to support HAR loading for OpenaiChat
2 parents 6a1f88e + 0ebc0d5 commit e269664

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

g4f/cookies.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class CookiesConfig():
3434
"www.whiterabbitneo.com",
3535
"huggingface.co",
3636
"chat.reka.ai",
37+
"chatgpt.com"
3738
]
3839

3940
if has_browser_cookie3 and os.environ.get('DBUS_SESSION_BUS_ADDRESS') == "/dev/null":
@@ -180,4 +181,4 @@ def _g4f(domain_name: str) -> list:
180181
return []
181182
user_data_dir = user_config_dir("g4f")
182183
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)

0 commit comments

Comments
 (0)