Skip to content

Commit a4974c3

Browse files
docs(readme): fix typo in custom fetch implementation (#300)
1 parent 7697fa1 commit a4974c3

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
@@ -296,7 +296,7 @@ import { fetch } from 'undici'; // as one example
296296
import Anthropic from '@anthropic-ai/sdk';
297297

298298
const client = new Anthropic({
299-
fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => {
299+
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
300300
console.log('About to make a request', url, init);
301301
const response = await fetch(url, init);
302302
console.log('Got response', response);

0 commit comments

Comments
 (0)