Skip to content

Commit 27134c0

Browse files
authored
docs: make awaited function async
1 parent f705de2 commit 27134c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ import { fetch } from 'undici'; // as one example
434434
import OpenAI from 'openai';
435435

436436
const client = new OpenAI({
437-
fetch: (url: RequestInfo, init?: RequestInfo): Response => {
437+
fetch: async (url: RequestInfo, init?: RequestInfo): Response => {
438438
console.log('About to make request', url, init);
439439
const response = await fetch(url, init);
440440
console.log('Got response', response);

0 commit comments

Comments
 (0)