A nonebot plugin for xinghuo LLM
Project description
nonebot-plugin-chatgpt-turbo
介绍
- 本插件是适配科大讯飞星火大模型官方API的聊天机器人插件,同时具有上下文记忆回复功能。已适配V3.0版API及星火助手API。
安装
-
手动安装
git clone https://github.com/Alpaca4610/nonebot_plugin_xinghuo_api.git
下载完成后在bot项目的pyproject.toml文件手动添加插件:
plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-xinghuo-api"]
-
使用 pip
pip install nonebot-plugin-xinghuo-api
配置文件
必选内容: 在Bot根目录下的.env文件中填入科大讯飞提供的API调用鉴权信息:
xinghuo_app_id = xxxxxxxx
xinghuo_api_secret = xxxxxxxx
xinghuo_api_key = xxxxxxxx
可选内容:
xinghuo_enable_private_chat = True # 私聊开关,默认开启,改为False关闭
xinghuo_api_version = "" #星火大模型的版本,默认为v1.5。使用2.0版本请填入v2,使用3.0版本请填入v3。使用助手API请输入助手id,在https://xinghuo.xfyun.cn/botcenter/createbot获取
使用方法
- @机器人进行问答时,机器人没有上下文回复的能力
- xh 使用该命令进行问答时,机器人具有上下文回复的能力
- xh_clear 清除当前用户的聊天记录
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_xinghuo_api-2.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9139f19bc66c1c500dce6c0ff93e694a0ff1ad68abd5cf164f8db7ed6e7cfcdf |
|
MD5 | d2b2c97c19226cf3a518ec29f9bdde4a |
|
BLAKE2b-256 | b3bd72bb6a9a16a5eea12c7e5627332fd503bc3d39148199cf9e33a68e1f3394 |
Close
Hashes for nonebot_plugin_xinghuo_api-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f68bcf9493106a7daa51a9097258450139f965057673cf9874ddc3ac9f99f9 |
|
MD5 | 9780801de26d9798daacc5b331161a17 |
|
BLAKE2b-256 | 930f179ed6629c6cceba771da8a511c05bdfcc0c1bdc5ccb18e994fdeb1d3687 |