Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Code Interpreter with IBM WatsonX AI

This example shows how to add code interpreting using the Code Interpreter SDK to an LLM running on IBM's WatsonX AI inference platform.

Setup Instructions

  1. Clone the repository
git clone https://github.com/e2b-dev/e2b-cookbook/
cd e2b-cookbook/examples/watsonx-ai-code-interpreter-js/
  1. Install dependencies
npm install
  1. Set up environment variables

Create a .env.local file in the root directory based on the provided .env.template:

# Get your credentials at dataplatform.cloud.ibm.com:
# - Under developer access, select the default project
# - Get the project ID
# - Get the wastonxai URL
# - Create an API key
WATSONX_PROJECT_ID = "project_id"
WATSONX_URL = "https://region.ml.cloud.ibm.com"
WATSONX_API_KEY = "your_api_key"

# Get your API key at e2b.dev:
E2B_API_KEY = "your_api_key"
  1. Start the development server
npm run dev