openai-node
openai-node copied to clipboard
"lib/IsolatedGPT35TurboMutation/deleteFineTuneModel: AbortController is not defined"
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
What is this error? It works fine locally, but when deploying I get this error..: "lib/IsolatedGPT35TurboMutation/deleteFineTuneModel: AbortController is not defined"
To Reproduce
if (job.model_id) { if (!src.openAiKey) throw new Error('OpenAiKey not found'); const openai = new OpenAI({ apiKey: src.openAiKey }); const model = await openai.models.del(job.model_id);
Code snippets
No response
OS
macOS
Node version
Node 18
Library version
openai 4.0.8
Thank you for reporting this. Where are you deploying to, and what are your deployment settings?
Can you share a full traceback?
Can you check whether this happens on "openai": "4.8.0" and "openai": "4.9.0"? We changed behavior in 4.9.0, so it'd be helpful to know whether that version fixed the issue, regressed it, or didn't fix it.
Hi, I also cannot install any openai npmjs module over 3.3.0 thus am unable to call the correct api url for gpt-4 - receiving error on install ReferenceError: AbortController is not defined Node: 16.16.0 macOS
unable to resolve the ReferenceError: AbortController is not defined error when trying to install openai>3.3.0 npm package. updated my node to 18.18.0 MacOS
Can you please share what package version you are using, how you are running the code, and a traceback?
Running node 18.18 works with openai 3.3.0 - unable to run gpt-4 with this package version (but am able davince) and cannot upgrade to openai 4 since it has this error during install (ReferenceError: AbortController is not defined)
W20230925-07:03:25.046(-4)? (STDERR) ReferenceError: AbortController is not defined
W20230925-07:03:25.047(-4)? (STDERR) at Object.getRuntime (.npm/package/node_modules/openai/_shims/node-runtime.js:69:25)
W20230925-07:03:25.047(-4)? (STDERR) at Object.
@frankwo1 how are you installing and building your code?