Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Latest commit

 

History

History

README.md

OpenAI Computer Use Tool Example

This example demonstrates how to use the OpenAI computer use tool with the Responses API and GenSX.

Setup

You'll need to install Playwright to run this example. The model will interact with a chromium browser powered by Playwright to accomplish the task.

# Install dependencies
pnpm install

# Build the example
pnpm build

# Install Playwright
npx playwright install

Usage

You can update the prompt in the index.tsx file to try out different tasks.

# Set your OpenAI API key
export OPENAI_API_KEY=<your_api_key>

# Run the example
pnpm run start