From 8566bfb87b633f4d72a85c49582b5c6e74f2b4cd Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 29 Feb 2024 20:56:43 +0000 Subject: [PATCH] docs(readme): fix typo in custom fetch implementation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8ff603e9..68d356f8f 100644 --- a/README.md +++ b/README.md @@ -434,7 +434,7 @@ import { fetch } from 'undici'; // as one example import OpenAI from 'openai'; const client = new OpenAI({ - fetch: async (url: RequestInfo, init?: RequestInfo): Promise => { + fetch: async (url: RequestInfo, init?: RequestInit): Promise => { console.log('About to make a request', url, init); const response = await fetch(url, init); console.log('Got response', response);