1
mirror of https://github.com/cocktailpeanut/dalai synced 2025-03-20 01:54:21 +01:00
2023-03-13 01:00:04 +00:00

11 lines
310 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 travelers from the future,",
n_predict: 400
}, (msg) => {
process.stdout.write(msg)
})