Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki committed Feb 15, 2023
1 parent bb28a6d commit 094fe45
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
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 指令将插件重新挂载才能生效。

0 comments on commit 094fe45

Please sign in to comment.