Skip to content

Commit

Permalink
fix(browser/captcha): ignore cookie consents
Browse files Browse the repository at this point in the history
  • Loading branch information
idiotWu committed Feb 3, 2025
1 parent 47aa63c commit 65643b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npiai/core/tool/_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ async def handle_captcha(captcha_type: Literal["none", "captcha", "login"]):
content=dedent(
"""
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".
NOTE: popups like cookie consent banners should not be considered as login forms.
"""
),
),
Expand Down

0 comments on commit 65643b6

Please sign in to comment.