mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

NodeJS TypeError: First parameter has member 'readable' that is not a ReadableStream.

Open poetsmeniet opened this issue 1 year ago • 1 comments

🐛 Describe the bug

I'm trying to create a bot using Node 18+ (I tried multiple versions), but receive the following error:

node_modules/openai/node_modules/web-streams-polyfill/dist/polyfill.js:362 throw new TypeError(context + " is not a ReadableStream."); ^ TypeError: First parameter has member 'readable' that is not a ReadableStream

I installed using npm i embedchain --save

The code I'm using:

`const dotenv = require("dotenv"); dotenv.config();

const { App } = require("embedchain");

async function askBot() { const myBot = await App();

const myPrompt = "Who where his parents, and how old was he?";
const res = await myBot.query(myPrompt);

console.log(res);

}

askBot();`

poetsmeniet avatar Oct 17 '23 14:10 poetsmeniet

I don't know why the code block is messed up, sorry

poetsmeniet avatar Oct 17 '23 14:10 poetsmeniet

Closing this issue as EmbedchainJS is no longer available.

Dev-Khant avatar Jun 21 '24 18:06 Dev-Khant