Closed max1mde closed 7 months ago
Selenium is a little bit unstable. You should reuse the Webdriver if possible. A example are in the docs. Also you are using a old version of g4f. Please update it.
isnt that the newest version?
What do you mean by reusing the Webdriver? Didnt find anything... Also im using a linux server without a gui so idk if this is even working with a browser
Our Docker Image is a working Ubuntu/Debian Server. Yes, it need some special configuration to run Google Chrome. In the docs are a part about the Webdriver:
/docs/legacy.md > Using Browser
You can also use other Providers. They need only some configuration. Like OpenaiChat or GeminiPro
Could I just use providers which dont need a browser? Do free APIs exist?
You could disable the Webdriver with:
pip uninstall undetected-chromedriver
Then only providers with this requirement try using it.
Yes there are free apis. Like OpenaiChat with access_token from the Web chat or GeminiPro with a free api_key for user outside europe.
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
Closing due to inactivity.
Bug description I installed gpt4free through pip on my debian 12 server and installed chrome using this guide: https://github.com/password123456/setup-selenium-with-chrome-driver-on-ubuntu_debian
Error:
Environment
The python file: