1
mirror of https://github.com/cocktailpeanut/dalai synced 2025-03-22 07:04:21 +01:00

11 lines
310 B
JavaScript
Raw Normal View History

2023-03-12 16:06:51 -04:00
// 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",
2023-03-13 01:00:04 +00:00
prompt: "If aliens were actually time travelers from the future,",
2023-03-12 16:06:51 -04:00
n_predict: 400
}, (msg) => {
process.stdout.write(msg)
})