Skip to content

Commit e1529fa

Browse files
authored
Update README.md
1 parent a385607 commit e1529fa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,26 @@ PC app configured to use ChatGPT with [our API](https://github.com/Em1tSan/Neuro
114114
- Setting generation parameters for GPT models
115115
- Built-in prompt templates and jailbreaks for various tasks
116116

117+
## Local launch
118+
119+
Before starting, you must create a new .env file at project root, and place your api key into it:
120+
121+
```
122+
OPENAI_API_KEY=<your api key here>
123+
124+
# if you are not able to access openai service, use this BASE_URL
125+
BASE_URL=https://neuroapi.host
126+
```
127+
128+
```shell
129+
# 1. install nodejs and yarn first
130+
# 2. config local env vars in `.env.local`
131+
# 3. run
132+
yarn install
133+
yarn dev
134+
```
135+
Then open http://127.0.0.1:3000 in your browser
136+
117137
***
118138
<div align="center">
119139

0 commit comments

Comments
 (0)