Skip to main content

A nonebot plugin for xinghuo LLM

Project description

NoneBotPluginLogo

NoneBotPluginText

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_xinghuo_api-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot_plugin_xinghuo_api-1.0.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad520926823cc79a636404918b4b76696e6c2361db33f8257bc039dcc3ceba44
MD5 759d027b11e77053aba0c206a7d0e020
BLAKE2b-256 4804cda690d5554806c30268560049f5ce8f83e0a9b6e2a9c0032a7c2c6c259e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_xinghuo_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5407437905c2896a883cccc137befb92bce2cacb8c7c0d3701921c4a74376fd4
MD5 3ce3f8a4af7da67e26860e282074cc01
BLAKE2b-256 f3fb926eef7fdb2fa1e2135aa0c53562476c3e546c2727fa028793b92bcd2a52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page