Skip to content

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

Remove todo

Magnus Müller10d4070d544c
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 230ecf08b..13fc1f1c8 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -448,7 +448,6 @@ class Agent(Generic[Context]):
"""Get next action from LLM based on current state"""
if self.model_name == 'deepseek-reasoner' or self.model_name.startswith('deepseek-r1'):
converted_input_messages = convert_input_messages(input_messages, self.model_name)
- # TODO: add output schema to LLM - else it does not know what actions are available
output = self.llm.invoke(converted_input_messages)
output.content = self._remove_think_tags(str(output.content))
# TODO: currently invoke does not return reasoning_content, we should override invoke