forked from ourongxing/chatgpt-vercel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# ChatGPT-API Demo | ||
|
||
A demo repo based on [OpenAI GPT-3.5 Turbo API](https://platform.openai.com/docs/guides/chat). | ||
A demo repo based on [OpenAI GPT-3.5 Turbo API](https://platform.openai.com/docs/guides/chat). | ||
|
||
## How to build | ||
|
||
1. Setup & Install dependencies | ||
|
||
> First, you need [Node.js](https://nodejs.org/) (v18+) installed. | ||
```shell | ||
npm i | ||
``` | ||
|
||
2. Make a copy of `.env.example`, then rename it to `.env` | ||
3. Add your [OpenAI API key](https://platform.openai.com/account/api-keys) to `.env` | ||
``` | ||
OPENAI_API_KEY=sk-xxx... | ||
``` | ||
4. Run the app | ||
```shell | ||
npm run dev | ||
``` | ||
|
||
## License | ||
|
||
MIT |