Skip to content

Commit

Permalink
docs: update fetch option comments (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Jun 18, 2023
2 parents 0dc851d + f121cbe commit 428b57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export interface OpenAIOptions extends OpenAIStreamOptions {
*/
controller?: AbortController;
/**
* An optional fetch implementation, which can be used to replace the default global fetch call used for making
* API requests. This is useful in environments like node where a global fetch is not provided by default.
* An optional custom fetch implementation, which will be used to replace the default fetch/node-fetch
* call used for making API requests in edge/dom and node environments respectively.
*/
fetch?: typeof fetch | typeof nodeFetch;
}
Expand Down

1 comment on commit 428b57d

@vercel
Copy link

@vercel vercel bot commented on 428b57d Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.