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

XFEstudio/gpt4free

Try to fix Captcha Issue

1cce6324
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -1
Modified g4f/Provider/bing/conversation.py +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: