#using openai api javascript

1 messages · Page 1 of 1 (latest)

river pike
#

I am using npm package "openai", Node and Express in JavaScript not TypeSript. I can't also use "Import"s

I get the following error when i run my server:

const configuration = new Configuration({
                      ^

TypeError: Configuration is not a constructor
blazing sapphire
#

ask gpt