Skip to content

Commit c3fee07

Browse files
committed
docs(readme): fix typo in custom fetch implementation (#698)
1 parent 08c5974 commit c3fee07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
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: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
437+
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
438438
console.log('About to make a request', url, init);
439439
const response = await fetch(url, init);
440440
console.log('Got response', response);

0 commit comments

Comments
 (0)