From 1cce6324f1fef23a5247c904cfcc170c164c23b1 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 17 Feb 2024 23:11:48 +0100 Subject: Try to fix Captcha Issue --- g4f/Provider/bing/conversation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'g4f') diff --git a/g4f/Provider/bing/conversation.py b/g4f/Provider/bing/conversation.py index fb95e241..919d9c1d 100644 --- a/g4f/Provider/bing/conversation.py +++ b/g4f/Provider/bing/conversation.py @@ -41,8 +41,11 @@ async def create_conversation(session: ClientSession, proxy: str = None) -> Conv "sec-fetch-site": "same-origin", "x-ms-client-request-id": str(uuid.uuid4()), "x-ms-useragent": "azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.12.3 OS/Windows", - "referer": url + "referer": url, + "Cookie": "; ".join(f"{c.key}={c.value}" for c in session.cookie_jar) } + for k, v in headers.items(): + session.headers[k] = v url = 'https://www.bing.com/turing/conversation/create?bundleVersion=1.1579.2' async with session.get(url, headers=headers, proxy=proxy) as response: try: -- cgit v1.2.3 From d55a4c3ef5301ad7e5686c12513ee816bcf76e6c Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Mon, 19 Feb 2024 18:29:23 +0100 Subject: Add MathJax to GUI #1563, Add model name to GUI #1600 --- g4f/gui/client/html/index.html | 9 +++++++++ g4f/gui/client/js/chat.v1.js | 44 ++++++++++++++++++++++++++---------------- 2 files changed, 36 insertions(+), 17 deletions(-) (limited to 'g4f') diff --git a/g4f/gui/client/html/index.html b/g4f/gui/client/html/index.html index 70b8c75f..eaae7355 100644 --- a/g4f/gui/client/html/index.html +++ b/g4f/gui/client/html/index.html @@ -21,6 +21,15 @@ + +