context-labs / babyagi-ts

A CLI tool for creating and managing BabyGI agents
MIT License
120 stars 10 forks source link

Headers is not defined #3

Open tandatit opened 1 year ago

tandatit commented 1 year ago

i got error message when init agent:

ReferenceError: Headers is not defined
    at createRequest (file:///Users/tidusvn05/.nvm/versions/node/v16.16.0/lib/node_modules/babyagi/node_modules/langchain/dist/util/axios-fetch-adapter.js:234:21)
    at fetchAdapter (file:///Users/tidusvn05/.nvm/versions/node/v16.16.0/lib/node_modules/babyagi/node_modules/langchain/dist/util/axios-fetch-adapter.js:164:21)
    at dispatchRequest (/Users/tidusvn05/.nvm/versions/node/v16.16.0/lib/node_modules/babyagi/node_modules/axios/lib/core/dispatchRequest.js:58:10)

anyone help me for this, thanks

ai-slave commented 1 year ago

Running into same error. Installed node-fetch, and added imports for Headers & Request, but now I'm gettting

Error: Network Error