From b4af3f67d5643be1c66ea12272f30db97c4fcd52 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Tue, 29 Apr 2025 11:23:03 -0700 Subject: [PATCH] decreased scroll sensitivity for openai's cua --- libs/agent/agent/providers/openai/tools/computer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/agent/agent/providers/openai/tools/computer.py b/libs/agent/agent/providers/openai/tools/computer.py index ae4fdce8..5ec9460a 100644 --- a/libs/agent/agent/providers/openai/tools/computer.py +++ b/libs/agent/agent/providers/openai/tools/computer.py @@ -162,8 +162,8 @@ class ComputerTool(BaseComputerTool, BaseOpenAITool): y = kwargs.get("y") if x is None or y is None: raise ToolError("x and y coordinates are required for scroll action") - scroll_x = kwargs.get("scroll_x", 0) // 20 - scroll_y = kwargs.get("scroll_y", 0) // 20 + scroll_x = kwargs.get("scroll_x", 0) // 50 + scroll_y = kwargs.get("scroll_y", 0) // 50 return await self.handle_scroll(x, y, scroll_x, scroll_y) elif type == "screenshot": return await self.screenshot()