Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"lib/IsolatedGPT35TurboMutation/deleteFineTuneModel: AbortController is not defined" #333

Closed
1 task done
pavelbrui opened this issue Sep 22, 2023 · 7 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@pavelbrui
Copy link

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

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

@pavelbrui pavelbrui added the bug Something isn't working label Sep 22, 2023
@rattrayalex
Copy link
Collaborator

rattrayalex commented Sep 22, 2023

Thank you for reporting this. Where are you deploying to, and what are your deployment settings?

Can you share a full traceback?

@rattrayalex
Copy link
Collaborator

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.

@frankwo1
Copy link

frankwo1 commented Sep 25, 2023

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

@frankwo1
Copy link

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

@rattrayalex
Copy link
Collaborator

Can you please share what package version you are using, how you are running the code, and a traceback?

@frankwo1
Copy link

frankwo1 commented Sep 25, 2023

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. (.npm/package/node_modules/openai/_shims/index.js:6:38)
W20230925-07:03:25.047(-4)? (STDERR) at Module._compile (internal/modules/cjs/loader.js:1085:14)
W20230925-07:03:25.047(-4)? (STDERR) at Module.Mp._compile (.meteor/local/build/programs/server/runtime.js:99:23)
W20230925-07:03:25.047(-4)? (STDERR) at Object.Module._extensions..js (.meteor/local/build/programs/server/runtime.js:131:23)
W20230925-07:03:25.047(-4)? (STDERR) at Module.load (internal/modules/cjs/loader.js:950:32)
W20230925-07:03:25.047(-4)? (STDERR) at Module.Mp.load (.meteor/local/build/programs/server/runtime.js:46:33)
W20230925-07:03:25.047(-4)? (STDERR) at Function.Module._load (internal/modules/cjs/loader.js:790:12)
W20230925-07:03:25.047(-4)? (STDERR) at Module.require (internal/modules/cjs/loader.js:974:19)
W20230925-07:03:25.047(-4)? (STDERR) at require (internal/modules/cjs/helpers.js:101:18)
W20230925-07:03:25.047(-4)? (STDERR) at Object. (.npm/package/node_modules/openai/core.js:19:17)
W20230925-07:03:25.048(-4)? (STDERR) at Module._compile (internal/modules/cjs/loader.js:1085:14)
W20230925-07:03:25.048(-4)? (STDERR) at Module.Mp._compile (.meteor/local/build/programs/server/runtime.js:99:23)
W20230925-07:03:25.048(-4)? (STDERR) at Object.Module._extensions..js (.meteor/local/build/programs/server/runtime.js:131:23)
W20230925-07:03:25.048(-4)? (STDERR) at Module.load (internal/modules/cjs/loader.js:950:32)
W20230925-07:03:25.048(-4)? (STDERR) at Module.Mp.load (.meteor/local/build/programs/server/runtime.js:46:33)

@rattrayalex
Copy link
Collaborator

@frankwo1 how are you installing and building your code?

@rattrayalex rattrayalex closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants