Hiya, would really appreciate some help, I'm trying to get this going for the first time and I don't know where else to turn. 🙏
When I run this basic 'hello world' script, I get a 429 error ("too many requests" - log attached). This happened on the first and every time, so I don't see how a 429 makes sense. Uptime seems to be fine, and I've tried it at different times of day, when US is asleep etc. I've I've Googled a bunch but nothing seems to explain it.
Does anyone know what I can do about this?
Eternal gratitude! ✨
const openai = new OpenAIApi(configuration);
openai
.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{ role: "user", content: "Hello world" }],
})
.then((res) => {
console.log(res.data.choices[0].message.content);
})
.catch((e) => {
console.log(e);
});