We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c5974 commit c3fee07Copy full SHA for c3fee07
README.md
@@ -434,7 +434,7 @@ import { fetch } from 'undici'; // as one example
434
import OpenAI from 'openai';
435
436
const client = new OpenAI({
437
- fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
+ fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
438
console.log('About to make a request', url, init);
439
const response = await fetch(url, init);
440
console.log('Got response', response);
0 commit comments