Skip to content

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

Update service.py

Nino Risteski2706154d5fbd
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 2dcad7d43..a45791d4c 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -238,7 +238,6 @@ class Agent:
def _setup_action_models(self) -> None:
"""Setup dynamic action models from controller's registry"""
- # Get the dynamic action model from controller's registry
self.ActionModel = self.controller.registry.create_action_model()
# Create output model with the dynamic actions
self.AgentOutput = AgentOutput.type_with_custom_actions(self.ActionModel)