-
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
yuki
committed
Feb 15, 2023
1 parent
bb28a6d
commit 094fe45
Showing
1 changed file
with
22 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,24 @@ | ||
# kokkoro-plugin-chatgpt | ||
|
||
年轻人的第一款人工智能 | ||
> 年轻人的第一款人工智能 | ||
## 安装 | ||
|
||
```shell | ||
# 切换至 bot 目录 | ||
cd bot | ||
|
||
# 安装 npm 包 | ||
npm i kokkoro-plugin-chatgpt | ||
``` | ||
|
||
## 环境变量 | ||
|
||
你可以在项目根目录下创建 `.env` 文件 | ||
|
||
```ini | ||
# API key | ||
OPENAI_API_KEY="xxx" | ||
``` | ||
|
||
因为插件的定时任务是在初始化时创建的,所以如果你修改了 OPENAI_API_KEY 变量,需要使用 reload 指令将插件重新挂载才能生效。 |