#Error 429 for a small request

2 messages · Page 1 of 1 (latest)

wooden pollen
#

Hi! thank you for stopping by
Currently im trying to use openai api with davinci model to generate a text summary. I had tried to do a request with a small text like "Test Abc", but all i get is 429 error, I already did tried the exponential backoff function but it still won't give me any success response.

#

this is the request data and config for the request:

const requestData = {
    prompt: "Please summarize the following text: " + textToSummarize,
    max_tokens: 200,
    temperature: 0.5,
    stop: "\n"
  };

  const config = {
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${apiKey}`
    },
  };