Best Practices for Error Handling in AI APIs | NanoGPT