Getting this error while using the code below. Is OpenAI truly experiencing overload?
If that’s the case, why am I able to successfully process certain rows of my dataset when I rerun it?
It appears to be an intermittent error, despite my efforts to be friendly to the API by implementing a 5-second delay for each line.
for index, row in df.iterrows():
response = openai.Completion.create(
model="text-davinci-003",
prompt=f"Classify the sentiment in this tweet:\n\n{row['text']}\n\nSentiment rating:",
temperature=0,
#max_tokens=60,
top_p=1.0,
frequency_penalty=0.0,
presence_penalty=0.0
)
score = response.choices[0].text.strip()
scores.append(score)
time.sleep(5)