TLDR
I wrapped Python traceback and Exception so whenever an Exception is raised, an automatic diagnosis is done by GPT-4. See results below:
Prompt (Automatically Generated by error_wrap
function)
This error message occurred because of 'test' at line 177 in file api.py, function main. The exception type is <class 'Exception'>. The function is: