I am trying to use open ai api for chatGPT integration website project, i am using free trial but i use the website locally so i am the only one who sends requests, but indeed I still got that error in the console:
POST https://api.openai.com/v1/engines/gpt-3.5-turbo/completions 429 (Too Many Requests)
here is how i request it in javascript:
const response = await axios.post('https://api.openai.com/v1/engines/gpt-3.5-turbo/completions',{
prompt: message,
max_tokens: 1000,
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${apiKey}`,
},
}
I tried to use small message to the chatbot and waited for some time and tried again in case there is pressure on open ai server
Zeyad Salah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.