1
mirror of https://github.com/cocktailpeanut/dalai synced 2025-05-07 17:08:49 +02:00
cocktailpeanut 38a3eca656 init
2023-03-12 16:06:51 -04:00

11 lines
309 B
JavaScript

// Return the full response (not just the answer) => need to pass "full: true" in the request
const Dalai = require('../index')
new Dalai().request({
full: true,
model: "7B",
prompt: "If aliens were actually time travlers from the future,",
n_predict: 400
}, (msg) => {
process.stdout.write(msg)
})