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.

replaced remaining `os=` occurances with `os_type=`

Dillon DuPont82810f53a1a7
diff --git a/README.md b/README.md
index 8eb120222e..640902dcc6 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,7 @@ If you want to use AI agents with virtualized environments:
from computer import Computer
from agent import ComputerAgent, LLM, AgentLoop, LLMProvider
- async with Computer(verbosity=logging.DEBUG) as macos_computer:
+ async with Computer(os_type="macos", display="1024x768") as macos_computer:
agent = ComputerAgent(
computer=macos_computer,
loop=AgentLoop.OPENAI, # or AgentLoop.ANTHROPIC, or AgentLoop.UITARS, or AgentLoop.OMNI
diff --git a/libs/computer/README.md b/libs/computer/README.md
index 7690ff4a20..c817c8cd28 100644
--- a/libs/computer/README.md
+++ b/libs/computer/README.md
@@ -26,7 +26,7 @@
```python
from computer import Computer
-computer = Computer(os="macos", display="1024x768", memory="8GB", cpu="4")
+computer = Computer(os_type="macos", display="1024x768", memory="8GB", cpu="4")
try:
await computer.run()
diff --git a/libs/computer/computer/ui/gradio/app.py b/libs/computer/computer/ui/gradio/app.py
index 47a73ccd49..e68ea26a50 100644
--- a/libs/computer/computer/ui/gradio/app.py
+++ b/libs/computer/computer/ui/gradio/app.py
@@ -532,7 +532,7 @@ async def handle_init_computer():
"""Initialize the computer instance and tools"""
global computer, tool_call_logs, tools
- computer = Computer(os="macos", display="1024x768", memory="8GB", cpu="4")
+ computer = Computer(os_type="macos", display="1024x768", memory="8GB", cpu="4")
await computer.run()
# Log computer initialization as a tool call
diff --git a/notebooks/blog/build-your-own-operator-on-macos-1.ipynb b/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
index 70c0e6eab9..e39ce336a3 100644
--- a/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
+++ b/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
@@ -187,7 +187,7 @@
" display=\"1024x768\",\n",
" memory=\"4GB\",\n",
" cpu=\"2\",\n",
- " os=\"macos\"\n",
+ " os_type=\"macos\"\n",
" ) as computer:\n",
" await computer.run()\n",
" \n",