-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent chrome (nodriver) windows openned -- python client #2582
Comments
Only the Cloudflare provider need nodriver to do work. |
Hey, thanks! How can I do this? I searched for "ignore" in the client api docs, but didn't found anything. |
I was looking at https://github.com/xtekky/gpt4free/blob/main/docs/providers-and-models.md I'm using gpt-4o-mini on my script. I think cloudflare is not an provider option to it, if we're talking about https://playground.ai.cloudflare.com Is there a way to identify which provider was used on the generation? |
I learned how to see the provider Just It's random. Example: sometimes the PollinationsAI opens a nodriver windows (headless = false) and sometimes don't. Same for DDG, and I supose for almost all providers. So, the reason for me to have a lot of chrome windows (headless = false) in my desktop it's bc the providers require it in some point and each one use 1 instance of it. They keep using only one window like @hlohaus said, but as each one needs one nodriver isntance, after sometime I get lots of chrome windows openned. |
We do not employ headless browser instances due to their incompatibility with our operational requirements. Authentication is managed through non-headless browser instances; following successful authentication, the request is terminated, and the browser instances are closed or the web server is shut down. Alternatively, the lightweight GPT4Free alternative may be more appropriate. To uninstall nodriver, please execute: |
I may be wrong, but it's possible that I'm experiencing this bc my default profile for chrome opens up 3 tabs. I recall that I had trouble closing selenium with driver.close(), cuz this only closes the current tab and not the entire browser. So I had to do a loop to close all tabs, or use the .quit() method. Anyways, thanks for helping! |
@otomay, I have added a lock file for |
Thanks @hlohaus! I can confirm it fixed the behavior! |
When using:
for some provider, a nodriver window is openned with headless = false (for some, it's not). And stays there openned using resources untill the script is finished, when I got:
It doesn't use the same chrome window, it keeps oppening up new ones.
am I doing something wrong?
The text was updated successfully, but these errors were encountered: