From af204c31cb047436f4e1c36199e15692eb271f20 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Fri, 9 Feb 2024 18:11:35 +0100 Subject: Read cookies from config in Gemini Fixes for OpenaiChat Provider --- g4f/webdriver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f/webdriver.py') diff --git a/g4f/webdriver.py b/g4f/webdriver.py index b54fae15..d9028a63 100644 --- a/g4f/webdriver.py +++ b/g4f/webdriver.py @@ -65,7 +65,8 @@ def get_browser( options=options, user_data_dir=user_data_dir, driver_executable_path=driver, - headless=headless + headless=headless, + patcher_force_close=True ) def get_driver_cookies(driver: WebDriver) -> Cookies: -- cgit v1.2.3