We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d67c11b + 0cfb8a0 commit 89cea27Copy full SHA for 89cea27
README.md
@@ -434,8 +434,8 @@ import { fetch } from 'undici'; // as one example
434
import OpenAI from 'openai';
435
436
const client = new OpenAI({
437
- fetch: (url: RequestInfo, init?: RequestInfo): Response => {
438
- console.log('About to make request', url, init);
+ fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
+ console.log('About to make a request', url, init);
439
const response = await fetch(url, init);
440
console.log('Got response', response);
441
return response;
0 commit comments