EvanZhouDev / bard-ai

A lightweight library to access Google Bard.
https://www.npmjs.com/package/bard-ai
GNU General Public License v3.0
117 stars 31 forks source link

Error when initializing Bard #33

Closed OsmonKida closed 1 year ago

OsmonKida commented 1 year ago

Hey, I am getting a ReferenceError: fetch is not defined, when trying to initialize Bard with Bard.init("KEY"), I am calling the init function on a express js app route, am I doing a mistake?

EvanZhouDev commented 1 year ago

Yeah, fetch is an experimental feature in Node.js (meaning it doesn't exist in some environments with it disabled). With that said, please see https://bard-ai-docs.vercel.app/fetch

OsmonKida commented 1 year ago

Thank you, closing this issue then!

ThatXliner commented 1 year ago

@EvanZhouDev Another FAQ addition. Maybe you should start making a README issue template? You may modify mine (at ThatXliner/pyt2)