Skip to content

Commit 3fd3bbb

Browse files
committed
Add WatsonX AI README for TypeScript
1 parent 859f6a8 commit 3fd3bbb

File tree

1 file changed

+39
-0
lines changed
  • examples/watsonx-ai-code-interpreter-js

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Code Interpreter with IBM WatsonX AI
2+
3+
This example shows how to add code interpreting using the [Code Interpreter SDK](https://github.com/e2b-dev/code-interpreter) to an LLM running on IBM's WatsonX AI inference platform.
4+
5+
## Setup Instructions
6+
7+
1. **Clone the repository**
8+
```bash
9+
git clone https://github.com/e2b-dev/e2b-cookbook/
10+
cd e2b-cookbook/examples/watsonx-ai-code-interpreter-js/
11+
```
12+
13+
2. **Install dependencies**
14+
```bash
15+
npm install
16+
```
17+
18+
3. **Set up environment variables**
19+
20+
Create a `.env.local` file in the root directory based on the provided `.env.template`:
21+
22+
```env
23+
# Get your credentials at dataplatform.cloud.ibm.com:
24+
# - Under developer access, select the default project
25+
# - Get the project ID
26+
# - Get the wastonxai URL
27+
# - Create an API key
28+
WATSONX_PROJECT_ID = "project_id"
29+
WATSONX_URL = "https://region.ml.cloud.ibm.com"
30+
WATSONX_API_KEY = "your_api_key"
31+
32+
# Get your API key at e2b.dev:
33+
E2B_API_KEY = "your_api_key"
34+
```
35+
36+
4. **Start the development server**
37+
```bash
38+
npm run dev
39+
```

0 commit comments

Comments
 (0)