Confirm this is a Node library issue and not an underlying OpenAI API issue
[X] This is an issue with the Node library
Describe the bug
error TS2345: Argument of type 'BlobPart[]' is not assignable to parameter of type '(Blob | BinaryLike)[]'.
Type 'BlobPart' is not assignable to type 'Blob | BinaryLike'.
Type 'ArrayBuffer' is not assignable to type 'Blob | BinaryLike'.
Type 'ArrayBuffer' is missing the following properties from type 'Float64Array': BYTES_PER_ELEMENT, buffer, byteOffset, copyWithin, and 24 more.
131 return new File(bits, name, options);
Found 1 error in node_modules/.pnpm/openai@4.56.0/node_modules/openai/src/uploads.ts:131
### To Reproduce
use pnpm to install the lib
use it in any ts file
run npx tsc
versions:
typescript: 4.9.5
node: v20.7.0
pnpm: 7.33.4
### Code snippets
```JavaScript
{
"name": "@zest/common-openai",
"version": "1.0.0",
"description": "Common openai",
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:watch:all": "jest --watchAll",
"tsc:ci": "tsc --noEmit",
"debug": "node --inspect-brk node_modules/.bin/jest --runInBand"
},
"author": "env0",
"license": "MIT",
"main": "index.ts",
"private": true,
"dependencies": {
"openai": "4.56.0"
}
}
```
### OS
14.1 (23B2073)
### Node version
v20.7.0
### Library version
4.56.0
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
error TS2345: Argument of type 'BlobPart[]' is not assignable to parameter of type '(Blob | BinaryLike)[]'. Type 'BlobPart' is not assignable to type 'Blob | BinaryLike'. Type 'ArrayBuffer' is not assignable to type 'Blob | BinaryLike'. Type 'ArrayBuffer' is missing the following properties from type 'Float64Array': BYTES_PER_ELEMENT, buffer, byteOffset, copyWithin, and 24 more.
131 return new File(bits, name, options);