mirror of https://github.com/xtekky/gpt4free.git
Update ChatgptFree.py
This commit is contained in:
parent
a0e826fcff
commit
68089ff0a9
|
@ -42,11 +42,11 @@ class ChatgptFree(AsyncProvider):
|
||||||
async with StreamSession(
|
async with StreamSession(
|
||||||
headers=headers,
|
headers=headers,
|
||||||
cookies=cookies,
|
cookies=cookies,
|
||||||
impersonate="chrome107",
|
impersonate="chrome",
|
||||||
proxies={"https": proxy},
|
proxies={"all": proxy},
|
||||||
timeout=timeout
|
timeout=timeout
|
||||||
) as session:
|
) as session:
|
||||||
|
|
||||||
if not cls._nonce:
|
if not cls._nonce:
|
||||||
async with session.get(f"{cls.url}/") as response:
|
async with session.get(f"{cls.url}/") as response:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue