Clarence Dan ac79d810d0
Fix memory leak issue by adding fetch request timeout
This commit resolves a memory leak issue that was occurring due to fetch requests hanging indefinitely. A timeout has been introduced to the `requestOpenai` function which ensures that these requests are aborted after a set period of time (currently 10 minutes). Additionally, error handling has been added to catch and log `AbortError` when a fetch request is aborted. This fix significantly improves the stability and reliability of the application by preventing memory leaks related to unresolved fetch requests.
2023-05-18 16:55:51 +08:00
..
2023-05-18 01:24:36 +08:00
2023-05-17 23:20:48 +08:00
2023-05-18 01:24:36 +08:00
2023-05-14 23:00:17 +08:00
2023-05-14 23:25:22 +08:00
2023-04-11 02:54:31 +08:00
2023-05-10 09:27:33 +08:00