From 68089ff0a90d2f1b5c52cfa050ceb440bb9d8825 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sat, 6 Apr 2024 23:45:15 +0200 Subject: Update ChatgptFree.py --- g4f/Provider/ChatgptFree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g4f/Provider') 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: -- cgit v1.2.3