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
File details
Details for the file nonebot_plugin_xinghuo_api-0.0.3.tar.gz
.
File metadata
- Download URL: nonebot_plugin_xinghuo_api-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.6 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b255e8ea4f2c6b1bd36c095b134fab358015ad6f373789e61acf8c134c49f671 |
|
MD5 | 158b20c1a21e33a8f6f7db564c92732a |
|
BLAKE2b-256 | 62eca281c49fe6bf130b649d7d3d1c7aafcf97e38cbd4c3ffe1ee4532288be65 |
File details
Details for the file nonebot_plugin_xinghuo_api-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_xinghuo_api-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.6 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a826779f906f8606a5d6cf799af6e4525f2851d337906dba49679f02c29919 |
|
MD5 | 20fd1a0dba29735df3713d947b83068e |
|
BLAKE2b-256 | 58d36a4631ddc71ae917608a1b5f9c39fe8f3a5ca2b14d77ff8b0262502c91a5 |