这是一个调用 OpenAI API 与 GPT 聊天的 QQ 机器人插件。使用者在使用前需要在代码中写入自己的 API_KEY。(https://beta.openai.com/account/api-keys)
This is a plug-in that can be installed in nonebot to talk to gpt by using the openai offical api.(https://beta.openai.com/account/api-keys) Users need to write their own API_KEY into the code before using it.
请先使用 pip
安装 openai
please first install openai
pip install openai
向机器人发送 "/chat" 指令来对话
Send the "/chat" command to the robot to talk