UNPKG

keli-chatgpt

Version:

keli 的 OpenAI / ChatGPT 插件

70 lines (46 loc) 1.46 kB
# OpenAI ChatGPT for keli [![npm-version](https://img.shields.io/npm/v/keli-chatgpt?color=527dec&label=keli-chatgpt&style=flat-square)](https://npm.im/keli-chatgpt) [![dm](https://shields.io/npm/dm/keli-chatgpt?style=flat-square)](https://npm.im/keli-chatgpt) [`keli`](https://npm.im/keli) 的 [OpenAI](https://openai.com) ChatGPT 插件。 **特征** - 默认使用最新的 `GPT-3.5` 模型(`gpt-3.5-turbo`) - 可选配置触发指令前缀,默认为 `%` - 可选开启 at 触发(艾特机器人) - 可选开启仅私聊可用,在群聊中关闭 - 使用 QQ 消息进行配置,无需手动修改 **安装** ```shell /plugin add chatgpt ``` **启用** ```shell /plugin on chatgpt ``` **配置** 申请 [OpenAI](https://openai.com/api/) 的 apiKey,然后使用以下命令自动配置 ```shell /chatgpt setkey <apiKey> ``` **使用** ```shell %背诵故事静夜思 %换个话题吧 ``` **可选配置** 配置是否艾特触发,默认开启 ```shell /chatgpt at <on/off> ``` 配置是否启用群聊,默认开启,发言不可控,为了账号安全可以关闭群聊功能,仅保留私聊 ```shell /chatgpt group <on/off> ``` 配置触发前缀,默认 %,不可为空 ```shell /chatgpt prefix <prefix> ``` 配置完成后,通过消息命令重载 ChatGPT 插件生效。 ```shell /plugin reload chatgpt ``` 其他配置可手动修改 `data/plugin/keli-chatgpt/config.json` 文件,重载插件生效。