Change anthropic predict_click logic

This commit is contained in:
Dillon DuPont
2025-09-25 15:53:20 -07:00
parent 301a011757
commit c892f4ecea

View File

@@ -1577,11 +1577,10 @@ Task: Click {instruction}. Output ONLY a click action on the target element."""
isinstance(item.get("action"), dict)):
action = item["action"]
if action.get("type") == "click":
if action.get("x") and action.get("y"):
x = action.get("x")
y = action.get("y")
if x is not None and y is not None:
return (int(x), int(y))
return (int(x), int(y))
return None