You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
A quick-start template using the OpenAI [Assistants API](https://platform.openai.com/docs/assistants/overview) with [Next.js](https://nextjs.org/docs).
### 2. Set your [OpenAI API key](https://platform.openai.com/api-keys) and [OpenAI Assistant ID](https://platform.openai.com/account/assistants)
17
+
### 2. Set your [OpenAI API key](https://platform.openai.com/api-keys)
18
18
19
-
Copy `.env.example` and rename it to `.env` and enter your API keys. When you create an OpenAI Assistant, **be sure to enable file search and code interpreter tools.**
20
-
21
-
```env
22
-
OPENAI_API_KEY="sk-123..."
23
-
OPENAI_ASSISTANT_ID="123..."
19
+
```shell
20
+
export OPENAI_API_KEY="sk_..."
24
21
```
25
22
23
+
(or in `.env.example` and rename it to `.env`).
24
+
26
25
### 3. Install dependencies
27
26
28
27
```shell
@@ -40,6 +39,7 @@ npm run dev
40
39
## Deployment
41
40
42
41
You can deploy this project to Vercel or any other platform that supports Next.js.
42
+
43
43
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fopenai%2Fopenai-assistants-quickstart&env=OPENAI_API_KEY,OPENAI_ASSISTANT_ID&envDescription=API%20Keys%20and%20Instructions&envLink=https%3A%2F%2Fgithub.com%2Fopenai%2Fopenai-assistants-quickstart%2Fblob%2Fmain%2F.env.example)
44
44
45
45
## Overview
@@ -57,7 +57,7 @@ The main logic for chat will be found in the `Chat` component in `app/components
0 commit comments