A nonebot plugin for openai gpt3.5-turbo
Project description
nonebot-plugin-chatgpt-turbo
介绍
- 本插件适配OpenAI在2023年3月1日发布的最新版API,可以在nonebot中调用OpenAI的ChatGPT生产环境下的模型(GPT3.5-turbo)进行回复。
- 接口调用速度与网络环境有关,经过测试,大陆外的服务器的OpenAI API响应时间能在十秒之内。
- 免费版OpenAI的调用速度限制为20次/min
安装
-
手动安装
git clone https://github.com/Alpaca4610/nonebot-plugin-gpt3.5-turbo.git
下载完成后在bot项目的pyproject.toml文件手动添加插件:
plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-gpt3.5-turbo"]
-
使用 pip
pip install nonebot-plugin-chatgpt-turbo
配置文件
在Bot根目录下的.env文件中追加如下内容:
OPENAI_API_KEY = key
OPENAI_MODEL_NAME = "gpt-3.5-turbo"
使用方法
- @机器人发送问题即可
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_chatgpt_turbo-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1bcfea06d3159a428877af1f5ac89169ac6a052b76b5d965fc298569f26995 |
|
MD5 | 05e45f774a3014f382155ef9bd13f1fc |
|
BLAKE2b-256 | 38558771f318ec34b890fc39b3c35d80eae1b070aa9a7cbbf13a6e8a14b07691 |
Close
Hashes for nonebot_plugin_chatgpt_turbo-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637839944782634cebbed3f6eac46b0a861275fbfd7ba32e83c19a93a4f36c50 |
|
MD5 | 1c4aae404e8f215d132ffe7aa1954434 |
|
BLAKE2b-256 | 0c984a284643f171841a79369204c27b11fb3b93eaeb0f2853e5abbe37395254 |