mirror of
https://github.com/trycua/computer.git
synced 2026-01-07 14:00:04 -06:00
Change anthropic predict_click logic
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user