Skip to content

Commit 4088075

Browse files
chore(client): qualify global Blob
1 parent 9741d2e commit 4088075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ export class OpenAI {
906906
// Preserve legacy string encoding behavior for now
907907
headers.values.has('content-type')) ||
908908
// `Blob` is superset of `File`
909-
body instanceof Blob ||
909+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
910910
// `FormData` -> `multipart/form-data`
911911
body instanceof FormData ||
912912
// `URLSearchParams` -> `application/x-www-form-urlencoded`

0 commit comments

Comments
 (0)