Skip to main content

A nonebot plugin for xinghuo LLM

Project description

NoneBotPluginLogo

NoneBotPluginText

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_xinghuo_api-2.3.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_xinghuo_api-2.3.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.6 Darwin/24.1.0

File hashes

Hashes for nonebot_plugin_xinghuo_api-2.3.1.tar.gz
Algorithm Hash digest
SHA256 e14b4dccfe4ef9e2e4972a5d98821ac3a30c84b4fbf6fac24617be90f13643a7
MD5 123a6782684b01bdaffb5556c0828225
BLAKE2b-256 dd1b494c9f6015fa9816d7f7b707f24e834895b16413170707f4384e234a102d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba107c10b5192fa6a7a85f883a615a32d62f22ce1d0221fc763c2323480be71
MD5 9626a8ba92a103ccba0574740134f41e
BLAKE2b-256 db6ee1cda51694f5591a05327170a2309abf441e29bca6498822e33852ea5e14

See more details on using hashes here.

Supported by

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