Git Product home page Git Product logo

nonebot-plugin-yiyan's Introduction

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、文心一言帮助

配置:

点击此处查看配置教程

nonebot-plugin-yiyan's People

Contributors

barryblueice avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.