chat-ui
b9463710 - fix: Improve error handling in generateFromDefaultEndpoint (#1853)

Commit
247 days ago
fix: Improve error handling in generateFromDefaultEndpoint (#1853) - Refactor error handling in the generateFromDefaultEndpoint function to prevent the Node.js process from crashing when an AbortError occurs. - Wrapped the getEndpoint and endpoint calls within a try...catch block to ensure that exceptions are caught and the process remains stable. Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Author
Parents
Loading