Open mfrancis107 opened 4 weeks ago
FYI: As a workaround you might want to try using the native fetch
implementation instead of node-fetch
. You can do so by dropping the node-fetch
import and keeping everything else as is. The fetch
global is available in both Deno and Node.
Native deno fetch is the one that does not work. node-fetch does work.
Right, apologies. Looks like I misread the issue.
Version: Deno 2.0.3
I have tested this on both a Mac and Windows WSL
Using node-fetch always works. When using Deno's default fetch if we increase the payload size I will get an error.
If we reduce the promptLength length to 200; We will get successful requests.
I haven't seen this happen with other API's yet. It looks like OpenAI Proxy's through Cloudflare.