Skip to main content

A nonebot plugin for xinghuo LLM

Project description

NoneBotPluginLogo

NoneBotPluginText

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


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-0.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0f452eea278e18d388f7f0e4024a8a393218eb3a5b1a0c243eb59210cdfba00d
MD5 42f94099bf344891ae87d82b031f1406
BLAKE2b-256 4cc61c1b4287b7d55a44d3a5087e47162b8e50cfe6f5fef62e58c2467553ae0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a282e551946598cf45b0520bac3f53e6d01372653cb0e537935b4d30f5e7c77
MD5 93f8cd3869f3e8efcdeea88d4806449b
BLAKE2b-256 a2ad0559221f2f3ad1815b5eaf223b00ea1bf70de9b2ebdf25161c92707b9ea3

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