返回提交历史
Modified
g4f/Provider/bing/conversation.py
+4
-1
XFEstudio/gpt4free
Try to fix Captcha Issue
1cce6324
代码差异
1 个文件
+4
-1
@@ -41,8 +41,11 @@ async def create_conversation(session: ClientSession, proxy: str = None) -> Conv
41
41
"sec-fetch-site": "same-origin",
42
42
"x-ms-client-request-id": str(uuid.uuid4()),
43
43
"x-ms-useragent": "azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.12.3 OS/Windows",
44
"referer": url
44
"referer": url,
45
"Cookie": "; ".join(f"{c.key}={c.value}" for c in session.cookie_jar)
45
46
}
47
for k, v in headers.items():
48
session.headers[k] = v
46
49
url = 'https://www.bing.com/turing/conversation/create?bundleVersion=1.1579.2'
47
50
async with session.get(url, headers=headers, proxy=proxy) as response:
48
51
try: