cua icon indicating copy to clipboard operation
cua copied to clipboard

Docs: Quickstart "wait" action incorrect shape

Open FinnBorge opened this issue 8 months ago • 1 comments

Hi C/UA team!

While investigating this awesome project I discovered that the quickstart notebook (notebooks/blog/build-your-own-operator-on-macos-1.ipynb) has what I think is an outdated shape for the "wait" action.

I attempted to run the quickstart code and got an error that indicated the "Wait" action didn't have an attribute called "time" I found the documentation available here: https://platform.openai.com/docs/guides/tools-computer-use?integration_cua=docker Here's my proposed diff:

+++ b/notebooks/blog/build-your-own-operator-on-macos-1.ipynb
@@ -145,9 +145,8 @@

-    "        wait_time = action.time\n",
-    "        print(f\"Waiting for {wait_time} seconds\")\n",
-    "        await asyncio.sleep(wait_time)\n",
+    "        print(f\"Waiting for 2 seconds\")\n",
+    "        await asyncio.sleep(2)\n",

I'm not as familiar with the OpenAI computer use API as the main team, so please let me know if I've misunderstood something here!

Warm regards, Finn

FinnBorge avatar Apr 26 '25 22:04 FinnBorge

Hi @FinnBorge - thanks for reporting the issue. I checked briefly, and it seems the time property is a leftover from another provider (it's used in other C/ua providers like Anthropic, UI-Tars, and Omni).

You can remove the reference, and it would be great if you could file a PR afterward. Much appreciated!

francedot avatar Apr 26 '25 23:04 francedot

This was fixed in #142.

jamesmurdza avatar Sep 30 '25 23:09 jamesmurdza