Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Rename environment variables to follow convention

James Murdzabca252b72111
diff --git a/examples/computer-example-ts/.env.example b/examples/computer-example-ts/.env.example
index 0496a574c8..260259a384 100644
--- a/examples/computer-example-ts/.env.example
+++ b/examples/computer-example-ts/.env.example
@@ -1,3 +1,3 @@
-OPENAI_KEY=
-CUA_KEY=
+OPENAI_API_KEY=
+CUA_API_KEY=
CUA_CONTAINER_NAME=
\ No newline at end of file
diff --git a/examples/computer-example-ts/README.md b/examples/computer-example-ts/README.md
index 935588aa38..500362c988 100644
--- a/examples/computer-example-ts/README.md
+++ b/examples/computer-example-ts/README.md
@@ -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:**
diff --git a/examples/computer-example-ts/src/index.ts b/examples/computer-example-ts/src/index.ts
index 1077e0880e..d58a9843bf 100644
--- a/examples/computer-example-ts/src/index.ts
+++ b/examples/computer-example-ts/src/index.ts
@@ -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,
});