booga.js
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Booga.js

The simple API Wrapper for the oobabooga/text-generation-webui

💡 Usage

Installation

npm install booga.js # or yarn/pnpm whatever

Good to see once

You can find all parameters in here

Example

You can get to easily get API endpoints use --public-api argument

import { Client } from "booga.js"

const client = new Client({
    uri: "https://your-share-api-url.trycloudflare.com/api", // default by localhost:5000
})

client.getCurrentModel().then(model => {
    console.log(model ?? "No model loaded! :(")
})

client.chat("Hello Assistant!", {
    character: "Assistant"
}).then(res => {
    console.log(`Assistant: ${res}`)
})

Readme

Keywords

none

Package Sidebar

Install

npm i booga.js

Weekly Downloads

3

Version

0.3.0

License

MIT

Unpacked Size

10.8 kB

Total Files

25

Last publish

Collaborators

  • pleahmacaka