Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

barryblueice/nonebot-plugin-yiyan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

nonebot-plugin-yiyan

做的什么狗屎,不做了,操

百度文心一言对话平台

简介:

基于zhenxun_bot平台开发的文心一言对话插件,稍加修改也可用在各类基于nonebot的机器人平台上。

可用功能:

  • 调用文心一言数据模型进行对话;
  • 多轮对话;
  • 角色扮演;

安装:

下载本插件后丢到插件文件夹里(但凡是个人都知道怎么装)。

参数:

参数名称 参数说明 默认值 范例
client_id API Key / client_id = "xxxxxxxxxxxxx"
client_secret Secret Key / client_secret = "xxxxxxxxxxxxx"
history_num 最大消息记录保存数量 50 history_num = 50
history_clear_time 消息记录保留时间,以分钟为单位,时间一到就会自动清除消息记录 5 history_clear_time = 5
name 机器人名称 / name = "qqbot"
waifu 角色扮演模板 角色扮演模板。若要添加新模板则需要同时修改wx_create模块中的相关内容 1.猫娘
2.傲娇女主

使用方法:

对话:/wx 对话内容
角色对话:/wx create 角色数字
查看当前聊天记录:/wx history
删除当前聊天记录:/wx delete
删除所有聊天记录:/wx delete_all(仅限bot管理员)
帮助:/wx help、文心一言帮助

配置:

点击此处查看配置教程

About

nonebot百度文心一言对话平台

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages