Skip to content

Commit

Permalink
docs(readme): fix typo in custom fetch implementation (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Feb 29, 2024
1 parent 940d569 commit 64041fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response> => {
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
console.log('About to make a request', url, init);
const response = await fetch(url, init);
console.log('Got response', response);
Expand Down

0 comments on commit 64041fd

Please sign in to comment.