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.