Working with ChatGPT, is there a way to programmatically catch the cases when it is unable to fulfil a request or answer a questoin, such as ‘sorry I cannot assist you with …’ kind of answers?
My program asks ChatGPT to rewrite emails and this sometimes happens to my requests and I need to dynamically catch that and change my prompts accordingly. I don’t think this is a type of ‘error’ or ‘exception’? If not, how do you catch such cases in code?
Thank you.