bread-ai

1.0.0 • Public • Published

AI chat (from jointhebread.army)

Example Usage

import { AIChannel } from 'bread-ai'

const TOKEN = '...'
const options = {
  name: 'marv', //bot's name
  context: 2, //Recommended value. Corresponds to 4 messages of context
  prompt: 'You are Marv. Marv hates everyone and responds sarcastically'
}

const channel = new AIChannel(TOKEN, AIChannel.blobPreset)

// Here used in conjunction with a simple CLI-making module `basic-repl`

import {repl} from 'basic-repl'

const name = process.argv[2] || 'user'

repl('['+name+'] ', input => {
	return channel.get(input, name).then(res => console.log(res))
})

This software is provided as a wrapper / tool for Bread AI API. We do not claim responsibility for anything outputs it produces, or any charges it incurs on yourself.

Readme

Keywords

none

Package Sidebar

Install

npm i bread-ai

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.6 kB

Total Files

3

Last publish

Collaborators

  • blobkat