You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is a Node library issue and not an underlying OpenAI API issue
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/[email protected]/node_modules/openai/src/uploads.ts:131
To Reproduce
use pnpm to install the lib
use it in any ts file
run npx tsc
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);
~~~~
Found 1 error in node_modules/.pnpm/[email protected]/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
OS
14.1 (23B2073)
Node version
v20.7.0
Library version
4.56.0
The text was updated successfully, but these errors were encountered: