diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-17 03:19:27 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-17 03:19:27 +0100 |
commit | 92908b4347ad8a8b231feeaf70cc163bbd85eb29 (patch) | |
tree | d5208f496974325a606d2bcf4297be5b6ed6c9b4 /g4f/Provider/helper.py | |
parent | Update Liaobots.py (diff) | |
download | gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar.gz gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar.bz2 gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar.lz gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar.xz gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.tar.zst gpt4free-92908b4347ad8a8b231feeaf70cc163bbd85eb29.zip |
Diffstat (limited to 'g4f/Provider/helper.py')
-rw-r--r-- | g4f/Provider/helper.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/g4f/Provider/helper.py b/g4f/Provider/helper.py index cad32f05..b10c912a 100644 --- a/g4f/Provider/helper.py +++ b/g4f/Provider/helper.py @@ -18,10 +18,10 @@ from browser_cookie3 import ( BrowserCookieError ) try: - from selenium.webdriver.remote.webdriver import WebDriver - except ImportError: - class WebDriver(): - pass + from selenium.webdriver.remote.webdriver import WebDriver +except ImportError: + class WebDriver(): + pass try: from undetected_chromedriver import Chrome, ChromeOptions except ImportError: @@ -153,7 +153,7 @@ def get_browser( if proxy: if not options: options = ChromeOptions() - options.add_argument(f'--proxy-server={proxy}') + options.add_argument(f'--proxy-server={proxy}') browser = Chrome(user_data_dir=user_data_dir, options=options) if hidden_display: |