summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorCommenter123321 <36051603+Commenter123321@users.noreply.github.com>2023-10-10 09:13:18 +0200
committerGitHub <noreply@github.com>2023-10-10 09:13:18 +0200
commit417ce27422f19cb43ddec8cf2af43bdbb1b795e6 (patch)
tree62cf64aedb65d9d4ebd40aac398ba4ad039e3ae2 /g4f/Provider
parent ~ | g4f `v-0.1.5.7` (diff)
downloadgpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar.gz
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar.bz2
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar.lz
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar.xz
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.tar.zst
gpt4free-417ce27422f19cb43ddec8cf2af43bdbb1b795e6.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/Aivvm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/Aivvm.py b/g4f/Provider/Aivvm.py
index 83495a22..3e4bbaeb 100644
--- a/g4f/Provider/Aivvm.py
+++ b/g4f/Provider/Aivvm.py
@@ -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
@@ -73,4 +73,4 @@ class Aivvm(AsyncGeneratorProvider):
('temperature', 'float'),
]
param = ', '.join([': '.join(p) for p in params])
- return f'g4f.provider.{cls.__name__} supports: ({param})' \ No newline at end of file
+ return f'g4f.provider.{cls.__name__} supports: ({param})'