XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update Aivvm.py

417ce274
Commenter123321 <36051603+Commenter123321@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified g4f/Provider/Aivvm.py +3 -3
@@ -45,12 +45,12 @@ class Aivvm(AsyncGeneratorProvider):
45 45 "temperature" : kwargs.get("temperature", 0.7)
46 46 }
47 47 headers = {
48 "Accept": "*/*",
48 "Accept": "text/event-stream",
49 49 "Origin": cls.url,
50 50 "Referer": f"{cls.url}/",
51 51 }
52 52 async with StreamSession(
53 impersonate="chrome107",
53 impersonate="chrome117",
54 54 headers=headers,
55 55 proxies={"https": proxy},
56 56 timeout=timeout
@@ -73,4 +73,4 @@ class Aivvm(AsyncGeneratorProvider):
73 73 ('temperature', 'float'),
74 74 ]
75 75 param = ', '.join([': '.join(p) for p in params])
76 return f'g4f.provider.{cls.__name__} supports: ({param})'
76 return f'g4f.provider.{cls.__name__} supports: ({param})'