From aabcc4aba14e25e0450d283dbf8742964e93ea03 Mon Sep 17 00:00:00 2001 From: Rohan Mehta Date: Tue, 11 Mar 2025 11:22:37 -0700 Subject: [PATCH] update cua model --- examples/tools/computer_use.py | 2 +- tests/examples/tools/computer_use.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tools/computer_use.py b/examples/tools/computer_use.py index 35fc865d9..ae339552e 100644 --- a/examples/tools/computer_use.py +++ b/examples/tools/computer_use.py @@ -28,7 +28,7 @@ async def main(): instructions="You are a helpful agent.", tools=[ComputerTool(computer)], # Use the computer using model, and set truncation to auto because its required - model="computer-use-preview-2025-02-04", + model="computer-use-preview", model_settings=ModelSettings(truncation="auto"), ) result = await Runner.run(agent, "Search for SF sports news and summarize.") diff --git a/tests/examples/tools/computer_use.py b/tests/examples/tools/computer_use.py index 35fc865d9..ae339552e 100644 --- a/tests/examples/tools/computer_use.py +++ b/tests/examples/tools/computer_use.py @@ -28,7 +28,7 @@ async def main(): instructions="You are a helpful agent.", tools=[ComputerTool(computer)], # Use the computer using model, and set truncation to auto because its required - model="computer-use-preview-2025-02-04", + model="computer-use-preview", model_settings=ModelSettings(truncation="auto"), ) result = await Runner.run(agent, "Search for SF sports news and summarize.")