From 486e43dabd1198e6f3c94a4040fc01f5b2fe824c Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Mar 2024 18:48:32 +0100 Subject: Fix missing websocket_request_id in OpenaiChat Add RateLimitErrors to Bing Add android support to gui api Add annotations import to gui api --- g4f/gui/webview.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'g4f/gui/webview.py') diff --git a/g4f/gui/webview.py b/g4f/gui/webview.py index ba764947..36ad0e60 100644 --- a/g4f/gui/webview.py +++ b/g4f/gui/webview.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import sys import os.path import webview @@ -20,6 +22,8 @@ def run_webview( dirname = sys._MEIPASS else: dirname = os.path.dirname(__file__) + webview.settings['OPEN_EXTERNAL_LINKS_IN_BROWSER'] = False + webview.settings['ALLOW_DOWNLOADS'] = True webview.create_window( f"g4f - {g4f.version.utils.current_version}", os.path.join(dirname, "client/index.html"), -- cgit v1.2.3