diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2023-11-17 03:21:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 03:21:50 +0100 |
commit | f57fa3a43f4981c17a4e52f662304e51adee0d08 (patch) | |
tree | e139fe863cb1551b2713d09ce7d69be2f34e435e /g4f/Provider/helper.py | |
parent | ~ | g4f `v-0.1.8.4` (diff) | |
parent | Add Poe Provider, Update AItianhuSpace Porvider (diff) | |
download | gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar.gz gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar.bz2 gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar.lz gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar.xz gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.tar.zst gpt4free-f57fa3a43f4981c17a4e52f662304e51adee0d08.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: |