Added Ollama & Openrouter & Groq & improved cdp browser (#2283)

This commit is contained in:
Prakash Maheshwaran
2025-05-05 03:03:23 -04:00
committed by GitHub
parent 0540e65d06
commit c3072d7572
5 changed files with 207 additions and 7 deletions

View File

@@ -465,10 +465,18 @@ async def _create_cdp_connection_browser(
raise Exception("Port 9222 is already in use. Another process may be using this port.")
browser_process = subprocess.Popen(
[browser_path, "--remote-debugging-port=9222"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
[
browser_path,
"--remote-debugging-port=9222",
"--no-first-run",
"--no-default-browser-check",
"--remote-debugging-address=0.0.0.0",
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
# Add small delay to allow browser to start
time.sleep(1)
time.sleep(2)
if browser_process.poll() is not None:
raise Exception(f"Failed to open browser. browser_path: {browser_path}")