A nonebot plugin for xinghuo LLM
Project description
nonebot-plugin-chatgpt-turbo
介绍
- 本插件是适配科大讯飞星火大模型官方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
可选内容:
ENABLE_PRIVATE_CHAT = True # 私聊开关,默认开启,改为False关闭
使用方法
- xh 使用该命令进行问答时,机器人具有上下文回复的能力
- 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-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2a26914cc5606c4c83d1d17e6b80552412a1a052a316d3383b5412a07835c1 |
|
MD5 | 2eba45568e77614639062f05cd880a3c |
|
BLAKE2b-256 | eb3ed69b32a9fa0f1a9640b5b48b5f5e98a443550eabdb9035948a369ad0cb0c |
Close
Hashes for nonebot_plugin_xinghuo_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108a003d329a34b66b8cf7218e5b19d098a15d452aaf47155bdceac0c2087315 |
|
MD5 | 9ce8e9c19fc93da4b5241a8f1779b7d3 |
|
BLAKE2b-256 | 760e2d000e4d58b3d14fb2453d5ad48e87ab20831f7ad802d5af85277f17dcd9 |