diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 23:45:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 23:45:15 +0200 |
commit | 68089ff0a90d2f1b5c52cfa050ceb440bb9d8825 (patch) | |
tree | e232adbf4575235012a9021d32c0dc46642351de | |
parent | Update ChatgptFree.py (diff) | |
download | gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar.gz gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar.bz2 gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar.lz gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar.xz gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.tar.zst gpt4free-68089ff0a90d2f1b5c52cfa050ceb440bb9d8825.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/ChatgptFree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/ChatgptFree.py b/g4f/Provider/ChatgptFree.py index 28c37948..22064f1b 100644 --- a/g4f/Provider/ChatgptFree.py +++ b/g4f/Provider/ChatgptFree.py @@ -42,11 +42,11 @@ class ChatgptFree(AsyncProvider): async with StreamSession( headers=headers, cookies=cookies, - impersonate="chrome107", - proxies={"https": proxy}, + impersonate="chrome", + proxies={"all": proxy}, timeout=timeout ) as session: - + if not cls._nonce: async with session.get(f"{cls.url}/") as response: |