npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-open-llm-chat

v1.3.9

Published

使用open-LLM-chat的生成式AI对话

Downloads

167

Readme

koishi-plugin-open-llm-chat

npm

chat with open-llm 这是一个Koishi插件,使用OpenAI的GPT模型进行对话,并具有一些额外的功能,如加载预设对话,生成tag等。

功能

  1. 与GPT模型进行对话:您可以用简单的命令与预训练的GPT模型进行对话。
  2. 加载预设对话:您可以加载网络上的预设对话,预设对话中的内容会成为GPT模型的对话历史,有助于引导模型进行有主题的对话。
  3. 生成tag:您可以用一个简单的命令生成tag,生成的tag可以用于自动绘画等功能。
  4. 自动绘画:在生成tag之后,插件可以自动执行绘画命令,实现从描述到绘画的一站式服务。
  5. 时间戳:每条对话都可以配置是否带有时间戳。

安装

首先确保您已经安装了koishi,并正确配置了您的机器人。然后,您可以使用NPM或Yarn安装此插件:

npm install koishi-plugin-open-llm-chat

或者

yarn add koishi-plugin-open-llm-chat

然后,在您的Koishi配置文件中添加以下内容:

module.exports = {
  plugins: {
    'open-llm-chat': {
      // 配置选项
    }
  }
}

配置选项

这个插件支持以下配置选项:

{
  api_endpoint: "https://api.chat.t4wefan.pub/v1",    // open-LLM-chat 服务器的地址
  model: "chatglm",    // 聊天使用的模型,默认glm,可选gpt-3.5-turbo
  enable_time_stamp: true,    // 启用后为每条对话附加时间信息
  first_after_preset: "你好",    // 加载预设后发送的第一条内容
  enable_immersive: true,    // 启用immersive功能(私聊增强+@回复)
  enable_tag: true,    // 启用绘画tag编写
  enable_auto_draw: true,    // 生成tag之后自动执行绘画
  auto_draw_command: "rryth"    // 自动执行绘画的指令
}

命令

这个插件支持以下命令:

  • chat:使用open-LLM-chat对话
  • load:加载预设(在imm状态下)
  • tag:使用open-LLM服务生成tag
  • ping:测试open-LLM连接状态
本readme由GPT-4模型生成