Update Aivvm.py

This commit is contained in:
Commenter123321 2023-10-10 09:13:18 +02:00 committed by GitHub
parent 6135f4ac08
commit 417ce27422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,12 +45,12 @@ class Aivvm(AsyncGeneratorProvider):
"temperature" : kwargs.get("temperature", 0.7)
}
headers = {
"Accept": "*/*",
"Accept": "text/event-stream",
"Origin": cls.url,
"Referer": f"{cls.url}/",
}
async with StreamSession(
impersonate="chrome107",
impersonate="chrome117",
headers=headers,
proxies={"https": proxy},
timeout=timeout