openai.createCompletion is not a function

“openai.createCompletion is not a function” does this mean that createCompletion is no longer a function provided by the OpenAi API or just that I have not defined it as a function in the code?

That means you haven’t successfully imported the package most likely. Make sure you have the latest version of everything installed too.

1 Like