Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix gemini example

Magnus Müllerd13cedbf5cb6
diff --git a/examples/models/gemini.py b/examples/models/gemini.py
index 930cb3100..3c9c34ccf 100644
--- a/examples/models/gemini.py
+++ b/examples/models/gemini.py
@@ -9,11 +9,11 @@ from lmnr import Laminar
load_dotenv()
-Laminar.initialize()
-
from browser_use import Agent, ChatGoogle
+Laminar.initialize()
+
api_key = os.getenv('GOOGLE_API_KEY')
if not api_key:
raise ValueError('GOOGLE_API_KEY is not set')