Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chatlunalab/gradio-service

为 Koishi 提供简易的 @gradio/client 支持
https://github.com/chatlunalab/gradio-service

Last synced: about 1 month ago
JSON representation

为 Koishi 提供简易的 @gradio/client 支持

Awesome Lists containing this project

README

        

# koishi-plugin-gradio-service

_提供 @gradio/client 支持_

## [![npm](https://img.shields.io/npm/v/koishi-plugin-gradio-service)](https://www.npmjs.com/package/koishi-plugin-gradio-service) [![npm](https://img.shields.io/npm/dm/koishi-plugin-gradio-service)](https://www.npmjs.com/package/koishi-plugin-gradio-service) ![node version](https://img.shields.io/badge/node-%3E=18-green) ![github top language](https://img.shields.io/github/languages/top/ChatLunaLab/chatluna-character?logo=github)

## 特性

Fork 自 [@gradio/client](https://github.com/gradio-app/gradio/tree/2b6cbf25908e42cf027324e54ef2cc0baad11a91/client/js)

为了体积,移除了一部分代码,其中以下功能未实现:

- duplicate
- 心跳包监听
- huggingface space 相关 api
- components 相关 api

新增了以下特性:

- 使用了 Koishi 的 HTTP 服务
- 移除了部分依赖,减小包体积
- cjs & esm 同步支持

## 使用

```typescript
import type { } from "koishi-plugin-gradio-service"

const app = ctx.gradio.connect(".....")

```