Rename environment variables to follow convention

This commit is contained in:
James Murdza
2025-08-21 16:27:14 -04:00
parent b302a44ccf
commit bca252b721
3 changed files with 6 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
OPENAI_KEY=
CUA_KEY=
OPENAI_API_KEY=
CUA_API_KEY=
CUA_CONTAINER_NAME=

View File

@@ -19,8 +19,8 @@ This example demonstrates how to control a cua Cloud container using the OpenAI
2. **Set up environment variables:**
Create a `.env` file with the following variables:
- `OPENAI_KEY` — your OpenAI API key
- `CUA_KEY` — your cua Cloud API key
- `OPENAI_API_KEY` — your OpenAI API key
- `CUA_API_KEY` — your cua Cloud API key
- `CUA_CONTAINER_NAME` — the name of your provisioned container
3. **Run the example:**

View File

@@ -4,13 +4,13 @@ import { executeAction } from "./helpers";
import "dotenv/config";
const openai = new OpenAI({ apiKey: process.env.OPENAI_KEY });
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const COMPUTER_USE_PROMPT = "Open firefox and go to trycua.com";
// Initialize the Computer Connection
const computer = new Computer({
apiKey: process.env.CUA_KEY!,
apiKey: process.env.CUA_API_KEY!,
name: process.env.CUA_CONTAINER_NAME!,
osType: OSType.LINUX,
});