Hi i have a simple js application with openai modules to use chatgpt but it throws a long error and i don't know how to solve it, here's the code:
const configuration = new Configuration({
apiKey: "api key",
});
const openai = new OpenAIApi(configuration);
const response = openai.createCompletion({
model: "text-davinci-003",
prompt: "Say this is a test",
temperature: 0,
max_tokens: 7,
});
console.log(response.data);```
to run this i use node ai.js in terminal