You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run the example in the readme file ( replacing the url and chatId)
"flowise-sdk": "^1.0.9",
node version: 20.15.0
SO: Windows
// changed this because the original code breaks. I'll made another issue about this.
import pkg from 'flowise-sdk';
const { FlowiseClient } = pkg
const flowise = new FlowiseClient({ baseUrl: 'http://localhost:3000' });
async function main() {
const completion = await flowise.createPrediction({
chatflowId: '<id>',
question: "hello",
streaming: true
});
for await (const chunk of completion) {
console.log(chunk);
}
}
main();
In the console, the completion object look like this
japentaca
changed the title
createPredicton returns an iterable object, but no data is returned
createPrediction returns an iterable object, but no data is returned
Sep 25, 2024
I tried to run the example in the readme file ( replacing the url and chatId)
"flowise-sdk": "^1.0.9",
node version: 20.15.0
SO: Windows
In the console, the completion object look like this
But the for await loop gets nothing and the script ends.
The text was updated successfully, but these errors were encountered: