transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.22k stars 2.12k forks source link

fetch is not defined #572

Closed didoee closed 1 year ago

didoee commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

node 16.20.0 win11

Describe the Bug

I have installed unfetch, but this problem is still occurring image

thititongumpun commented 1 year ago

Hi, in docs. -> Make sure you're using node >= 18 so fetch is available (or node >= 14 if you install a fetch polyfill).

didoee commented 1 year ago

Hi, in docs. -> Make sure you're using node >= 18 so fetch is available (or node >= 14 if you install a fetch polyfill).

I have installed fetch polyfill as documented

image

transitive-bullshit commented 1 year ago

@didoee you also need to initialize the fetch polyfill. Please double check the docs.

inannan423 commented 1 year ago

@didoee Are you from China? OpenAI's API is not accessible in China, so consider proxies. Solve this problem and it will work. chatgptProxyAPI