We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9741d2e commit 4088075Copy full SHA for 4088075
src/client.ts
@@ -906,7 +906,7 @@ export class OpenAI {
906
// Preserve legacy string encoding behavior for now
907
headers.values.has('content-type')) ||
908
// `Blob` is superset of `File`
909
- body instanceof Blob ||
+ ((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
910
// `FormData` -> `multipart/form-data`
911
body instanceof FormData ||
912
// `URLSearchParams` -> `application/x-www-form-urlencoded`
0 commit comments