how to handle KeyError: 'choices' with chatGPT