Skip to content

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

always tell agent to not use credentials unless necessary when provided credentials in evals

Alezander9e035d490c323
diff --git a/eval/server.py b/eval/server.py
index 0da0a8f88..c8dea5ce3 100644
--- a/eval/server.py
+++ b/eval/server.py
@@ -152,7 +152,7 @@ def format_auth_info_for_agent(auth_distribution: dict, auth_keys: list[str]) ->
logger.warning(f"Auth key '{auth_key}' not found in available login info. Available keys: {list(login_info.keys())}")
if relevant_auths:
- auth_text = f'\n\nThe following login credentials can be used to complete this task: {"; ".join(relevant_auths)}.'
+ auth_text = f"\n\nOnly log into the account if it's required to complete the task. Do not log in otherwise.\n The following login credentials can be used to complete this task: {'; '.join(relevant_auths)}."
logger.info(f'Formatted auth info: {auth_text}')
return auth_text
else: