-
Notifications
You must be signed in to change notification settings - Fork 868
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
Incompatibility with Non-Node Environments Due to qs
Package
#1027
Comments
Thanks for the report, we're investigating solutions. In the meantime would you be able to share a minimal reproduction? |
Thanks for looking into this. Below is the reproduction, https://stackblitz.com/edit/node-eqjgac?file=package.json&view=editor |
Thanks so much, that repro is very helpful. Still investigating solutions, will hopefully have an answer soon. |
Hey @RobertCraigie, just checking in—any updates on this? Let me know if there’s anything I can help with! Thanks! |
Will have an update out shortly! In the final testing stages. |
@Rajaniraiyn this will be fixed in the next release! #1081 |
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
The recent release introduced a dependency on the
qs
package (#1023), which relies on Node.js’s built-inutils
module. This makes the entire SDK unusable in non-Node.js environments, such as browsers.Dependency Chain:
qs
→side-channel
→object-inspect
The object-inspect package, a transitive dependency of
qs
, uses a Node.js built-in module (utils
), causing builds to fail in non-Node environments.To Reproduce
Code snippets
Minimal Reproduction
OS
macOS
Node version
Chromium v128.0.6613.85
Library version
openai v4.56.2
The text was updated successfully, but these errors were encountered: