A nonebot plugin for xinghuo LLM
Project description
nonebot-plugin-chatgpt-turbo
介绍
- 本插件是适配科大讯飞星火大模型官方API的聊天机器人插件,同时具有上下文记忆回复功能。已适配V2.0版API。
- 注:2023.8.18晚,星火V2.0模型测试时偶发内部引擎错误,等待科大讯飞修复。
安装
-
手动安装
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_v2: bool = False #是否使用V2.0版API
使用方法
- 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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5235197a2ba3b00d8fc7da6cba8a0228860e3899ed752d689364751a0285ff63 |
|
MD5 | b87a8cac99a51242bb6f8ef8df154029 |
|
BLAKE2b-256 | d3ba22914ae75dd0f74fb2f1efa2fa67ac365cceb26c86ba42b91b13714acfd1 |
Close
Hashes for nonebot_plugin_xinghuo_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b912d3b1a2152752a3297b1efc26bd7d26ac61d5af7d356f765d34bde6a5fd91 |
|
MD5 | 9e850ad7575199cd662c012721fefd96 |
|
BLAKE2b-256 | 6e4bdd852d2cbb10480474e06636b3cfec94ad1acf92f4425ff3e6b67516e417 |