This Code Interpreter using OpenAI Assistants API, Next.js, Vercel Blob and Vercel AI Package
To run this project, you will need the following API keys:
-
OPENAI_API_KEY: This is your OpenAI API key. You can obtain it by creating an account on the OpenAI website.
-
ASSISTANT_ID: This is the ID of your OpenAI Assistant. You can find this in your OpenAI dashboard under the Assistants section.
-
BLOB_READ_WRITE_TOKEN: This is your Vercel Blob read/write token. You can obtain it by creating a Blob storage on the Vercel website. Setup
To setup the project, follow these steps:
-
Clone the repository to your local machine.
-
Create a .env.local file in the root directory of the project.
-
Add the following lines to the .env.local file, replacing with your actual keys: "
-
Install the project dependencies by running npm install or yarn install.
-
Start the development server by running npm run dev or yarn dev
Now, you should be able to access the application at http://localhost:3000. Usage
This project is not affiliated with Next.js