Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Added grounding model fallback

Dillon DuPontb7cbac31a0f4
diff --git a/libs/python/agent/agent/agent.py b/libs/python/agent/agent/agent.py
index f7ba6418e1..8d6279fb62 100644
--- a/libs/python/agent/agent/agent.py
+++ b/libs/python/agent/agent/agent.py
@@ -253,6 +253,10 @@ class ComputerAgent:
# == Initialize computer agent ==
+ # If the loop is "human/human", we need to prefix a grounding model fallback
+ if self.agent_loop in ["human/human", "human"]:
+ self.agent_loop = "openai/computer-use-preview+human/human"
+
# Find the appropriate agent loop
if custom_loop:
self.agent_loop = custom_loop