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.

Fixed bug in init

Dillon DuPont221604330510
diff --git a/libs/python/agent/agent/agent.py b/libs/python/agent/agent/agent.py
index 8d6279fb62..8120109d80 100644
--- a/libs/python/agent/agent/agent.py
+++ b/libs/python/agent/agent/agent.py
@@ -254,8 +254,8 @@ 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"
+ if model in ["human/human", "human"]:
+ model = "openai/computer-use-preview+human/human"
# Find the appropriate agent loop
if custom_loop: