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
importOpenAIfrom'openai';constclient=newOpenAI({apiKey: process.env['OPENAI_API_KEY']!,// This is the default and can be omitted});asyncfunctionmain(){constchatCompletion=awaitclient.chat.completions.create({messages: [{role: 'user',content: 'Say this is a test'}],model: 'gpt-3.5-turbo',});}main();
OS
linux fedora
Node version
v20.12.2
Library version
^4.56.0
The text was updated successfully, but these errors were encountered:
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
i tried to run the default example after installing the package and i get this error which is hard to belive
my package.json
To Reproduce
install the openai package in your project
Code snippets
OS
linux fedora
Node version
v20.12.2
Library version
^4.56.0
The text was updated successfully, but these errors were encountered: