This example demonstrates how to use the OpenAI computer use tool with the Responses API and GenSX.
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 installYou 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