Giter Club home page Giter Club logo

mirai-openai-plugin-test's Introduction

Mirai Console 下的 OpenAI Chat Bot 插件

maven-central test

Be based on https://chat.openai.com/
OpenAI 目前对注册有一定要求,请先阅读 注册

效果

chat completion image

配置

openai.yml 基本配置

  • completion_prefix 自定义模型触发前缀, 默认 >
  • image_prefix 图片生成触发前缀, 默认 ?
  • chat_prefix 聊天模型触发前缀, 默认 chat
  • question_prefix 问答模型触发前缀, 默认 Q&A
  • stop 停止聊天或问答, 默认stop
  • token OPENAI_TOKEN, 插件第一次启动时会要求输入,不用编辑文件
  • error_reply 发生错误时回复用户,默认 true

completion.yml 自定义模型详细配置

  • model 模型
  • max_tokens 回答长度

image.yml 图片生成模型详细配置

  • number 图片张数
  • size 可选的范围是固定的,请不要更改
  • format 下载方式,请不要更改

chat.yml 聊天模型详细配置

  • timeout 等待停止时间
  • max_tokens 回答长度

question.yml 问答模型详细配置

  • timeout 等待停止时间
  • max_tokens 回答长度

注册

https://blog.csdn.net/duoshehuan6005/article/details/128184450

测试

在线测试
https://beta.openai.com/playground

官方例子
https://beta.openai.com/examples

安装

MCL 指令安装

请确认 mcl.jar 的版本是 2.1.0+
./mcl --update-package xyz.cssxsh.mirai:mirai-openai-plugin --channel maven-stable --type plugin

手动安装

  1. Releases 或者 Maven 下载 mirai2.jar
  2. 将其放入 plugins 文件夹中

mirai-openai-plugin-test's People

Contributors

cssxsh 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.