How to fix openai.APIError: The server had an error while processing your request in Python | DevErrors