mirror of
https://github.com/cocktailpeanut/dalai
synced 2024-11-25 09:27:20 +01:00
11 lines
310 B
JavaScript
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)
|
|
})
|