返回提交历史
Modified
g4f/Provider/Aivvm.py
+3
-3
XFEstudio/gpt4free
Update Aivvm.py
417ce274
代码差异
1 个文件
+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})'