I created a Python script that loops through a list of text strings (each string is about 2000 characters in length) and summarizes each string. See the code for the response below (This prompt is within a for loop):
response = openai.Completion.create( model="text-davinci-003", max_tokens=2000, prompt = f"Summarize the following text: {text_list[i]}", temperature=0.5, frequency_penalty=1.5, presence_penalty=-1.5, n=1 )
It works for maybe 1 or 2 items in the text list but then I receive an error: openai.error.APIError: The server had an error while processing your request. Sorry about that!
This happens consistently even when I use different api keys, prompts, accounts. I have also tried exponential backoff with no success. Any idea what is happening?