|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
### Node
|
|
|
|
### Node
|
|
|
|
|
|
|
|
|
|
|
|
`node` 需要 `^16 || ^18` 版本,使用 [nvm](https://github.com/nvm-sh/nvm) 可管理本地多个 `node` 版本
|
|
|
|
`node` 需要 `^16 || ^18` 版本(或者 `node >= 14` 需要安装 [fetch polyfill](https://github.com/developit/unfetch#usage-as-a-polyfill)),使用 [nvm](https://github.com/nvm-sh/nvm) 可管理本地多个 `node` 版本
|
|
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
```shell
|
|
|
|
node -v
|
|
|
|
node -v
|
|
|
@ -36,7 +36,7 @@ npm install pnpm -g
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### OpenAI API Key
|
|
|
|
### OpenAI API Key
|
|
|
|
获取 [OpenAI API key](https://platform.openai.com/overview) 并填写到本地环境变量
|
|
|
|
注册并获取 [OpenAI API key](https://platform.openai.com/overview) 并填写到本地环境变量
|
|
|
|
```
|
|
|
|
```
|
|
|
|
# service/.env 文件
|
|
|
|
# service/.env 文件
|
|
|
|
|
|
|
|
|
|
|
|