A nonebot plugin for xinghuo LLM
Project description
nonebot-plugin-xinghuo-api
介绍
- 本插件是适配科大讯飞星火大模型官方API的聊天机器人插件,同时具有上下文记忆回复功能。已适配版本:Ultra,Max,Pro,Pro-128K,V2.0,Lite。
- 当前版本可能会与LittlePaimon机器人冲突
安装
-
手动安装
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 = "" #星火大模型的版本,默认为免费的Lite模型,可选填:Ultra,Max,Pro,Pro-128K,V2.0,Lite
使用方法
- 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-2.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8ac775cc6ad19a898f802e792433d11cb3f83c33e1de6df74c92f61eba12dc |
|
MD5 | 6e18e38d30c24e3f34be133219ffb231 |
|
BLAKE2b-256 | 981e1eb1a1d1a23a78b58c414f86e8b93f65ad2b89ff9f37c9144f8e934c03a5 |
Close
Hashes for nonebot_plugin_xinghuo_api-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9da7f7860a0152231ea6fe1f26c937cae0dd58453bc79076ab45cfe665a7cb6 |
|
MD5 | a0a6ea06590175991aaf053dd084e809 |
|
BLAKE2b-256 | 80b5497fd8cf96e4c5b4b19cc6d15ee9b782be8bcb107fe6fa555ba2baf39125 |