createTranscription File type does not exist in node
Problem
Describe the bug createTranscription's interface is defined as: `createTranscription(file: File, ....)` However, `File` does not exist in node.js. This is a browser only class. What is expected here? A return value from fs.readFileSync? To Reproduce [code block] Code snippets _No response_ OS macOS Node version Node v14.19.0 Library version openai 3.2.1
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: createTranscription File type does not exist in node
I believe this is mostly a typing issue in `api.ts` with the `file` param. The code doesn't actually use any `File` properties. Also, the docs show a different usage using : [code block]
Trust Score
4 verifications
- 1
I believe this is mostly a typing issue in `api.ts` with the `file` param. The c
I believe this is mostly a typing issue in `api.ts` with the `file` param. The code doesn't actually use any `File` properties. Also, the docs show a different usage using :
Validation
Resolved in openai/openai-node GitHub issue #127. Community reactions: 5 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep