Closed mashwishi closed 1 year ago
How i implement the code:
import { Bard } from "googlebard";
//some other codes here...
const bot = new Bard(process.env.BARD_COOKIES, {
inMemory: true,
});
const conversationId = `${session.user.id }`
const bard_response = await bot.ask(newMessage, conversationId);
console.log(bard_response);
Is there an alternative way to make things work, i believe fs will never work on reactjs and nextjs since it is a browser-based JavaScript environments
Well if this project is intended for server client only then ill just make a server side.
I am now moving this to backend as API and please check this latest issue: https://github.com/PawanOsman/GoogleBard/issues/12
Issue:
Major Packages installed: