forked from XiaoMo/ChatGPT-Next-Web
ac79d810d0
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. |
||
---|---|---|
.. | ||
api | ||
client | ||
components | ||
config | ||
icons | ||
locales | ||
masks | ||
store | ||
styles | ||
utils | ||
command.ts | ||
constant.ts | ||
global.d.ts | ||
layout.tsx | ||
page.tsx | ||
polyfill.ts | ||
typing.ts | ||
utils.ts |