ChatGPT-Next-Web/app
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
..
api Fix memory leak issue by adding fetch request timeout 2023-05-18 16:55:51 +08:00
client fix content-type = text/event-stream;charset=utf-8 2023-05-18 10:25:06 +08:00
components feat: stop all stale messages 2023-05-18 01:24:36 +08:00
config feat: close #444 use env var to disable gpt-4 2023-05-09 23:20:03 +08:00
icons 给所有select元素添加一个右侧下拉按钮 2023-05-10 07:14:49 +00:00
locales add type LocaleType 2023-05-17 23:20:48 +08:00
masks Update en.ts to fix quotes for Copilot mask 2023-05-15 23:11:04 -05:00
store feat: stop all stale messages 2023-05-18 01:24:36 +08:00
styles feat: #1303 improve long text input ux and mobile modal 2023-05-08 22:49:51 +08:00
utils refactor: #1000 #1179 api layer for client-side only mode and local models 2023-05-15 01:33:46 +08:00
command.ts feat: close #1301 support message actions 2023-05-09 00:39:00 +08:00
constant.ts refactor: llm client api 2023-05-14 23:00:17 +08:00
global.d.ts feat: close #680 lazy load markdown dom 2023-04-12 23:27:28 +08:00
layout.tsx fix: #1444 async load google fonts 2023-05-14 23:25:22 +08:00
page.tsx feat: dynamic config 2023-04-11 02:54:31 +08:00
polyfill.ts fix: #397 #373 Array.prototype.at polyfill errors 2023-04-03 13:29:37 +08:00
typing.ts refactor: #1000 #1179 api layer for client-side only mode and local models 2023-05-15 01:33:46 +08:00
utils.ts fix: row count logic 2023-05-10 09:27:33 +08:00