Skip to content

Commit bf914d5

Browse files
committed
fix(browser/captcha): avoid login buttons
1 parent de4e1de commit bf914d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npiai/core/tool/_browser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,12 @@ async def handle_captcha(captcha_type: Literal["none", "captcha", "login"]):
351351
role="system",
352352
content=dedent(
353353
"""
354-
You are given a screenshot of a webpage. Determine if a captcha or login form is present in the screenshot. If a captcha is present, call the tool with the argument "captcha". If a login form is present, call the tool with the argument "login". If neither is present, call the tool with the argument "none".
354+
You are given a screenshot of a webpage. Determine if a captcha or login form with input fields is present in the screenshot. If a captcha is present, call the tool with the argument "captcha". If a login form is present, call the tool with the argument "login". If neither is present, call the tool with the argument "none".
355355
356356
NOTE:
357357
- Popups like cookie consent banners should not be considered as login forms.
358358
- The login action can be ignored if the main content is visible in the screenshot.
359-
- Login button that triggers a login form should not be considered as login forms. Only visible login forms should be considered.
359+
- Login button that triggers a login form should not be considered as login forms. Only visible login forms with input fields should be considered.
360360
"""
361361
),
362362
),

0 commit comments

Comments
 (0)