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
xinghuo_api_prompt = "" # 星火大模型人格prompt,留空默认不开启,人格设置是否成功与人格prompt有关

使用方法

  • 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.4.0.tar.gz (4.2 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.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_xinghuo_api-2.4.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.8.0 Windows/10

File hashes

Hashes for nonebot_plugin_xinghuo_api-2.4.0.tar.gz
Algorithm Hash digest
SHA256 87ec11a62ba24b52d5f9949f8ab6f57d904e257e1d71b3ad98a422f5caa5e4a6
MD5 7e5fc15f3cce95e5aeed2d469f6cfb2b
BLAKE2b-256 13839918e7bdd2c2fb78ed905d1caa981aa14f206e89d8e798538a5b5aa1627b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xinghuo_api-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2583665a1faad1fc0954ba0986d4503b14faf2a198ab520028e6795231c15b
MD5 5187696ef099513e4f8d82154e45874a
BLAKE2b-256 326e62f4b51f8c9fa064fb9b4fe2372cb182defabf587fa61bbebaba55073e4f

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