Commit Graph

23 Commits

Author SHA1 Message Date
Yifei Zhang 0b7de6f7b2
fix: #2594 trim the / 2023-08-10 10:47:06 +08:00
Yidadaa b14c5cd89c fix: #2485 one-time-use body 2023-08-08 21:36:37 +08:00
Yidadaa 30473ec41e fix: #2367 do not copy in async callback after sharing to ShareGPT 2023-07-16 16:14:57 +08:00
markshawn2020 1c335a68e0 fixed openai base url if empty 2023-07-14 21:03:32 +08:00
yuanliang feng a832cfb343
Update common.ts 2023-07-11 15:46:40 +08:00
yuanliang feng 7a0b437626
Update common.ts 2023-07-10 17:26:28 +08:00
ShengYan, Zhang dd047fd58f fix: typos 2023-07-10 10:09:19 +08:00
mushan0x0 9c05d136f5
fix: #2061 RequestInit TypeError 2023-06-20 11:57:31 +08:00
Yidadaa 6410aa214e feat: just disable all ngnix buffer 2023-06-08 23:49:06 +08:00
Yidadaa a3a77006ff fixup: #1815 req.body will be broken in edge runtime 2023-06-07 02:24:45 +08:00
Yidadaa 37da759fd5 fix: #1815 refuse to serve when disable gpt4 2023-06-07 01:02:01 +08:00
popcell d533895637 fix: #1746 Can't modify immutable headers. 2023-05-25 17:50:46 +08:00
Yidadaa c2b36cdffa feat: prevent browser to invoke basic auth popup 2023-05-21 00:06:28 +08:00
Yidadaa 203ac0970d feat: #1640 support free gpt endpoint 2023-05-19 23:53:27 +08:00
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
Clarence Dan 2b912c6834
fix: 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:52:32 +08:00
Yidadaa 736c66f46a feat: stop all stale messages 2023-05-18 01:24:36 +08:00
LaChimere 1facbb2906 fix typo 2023-05-07 13:52:26 +08:00
Yidadaa 48ebd74859 refactor: merge token and access code 2023-05-03 23:08:37 +08:00
Yidadaa 8f5c289818 fix: #751 do not cache request 2023-05-01 23:48:23 +08:00
Yin Min 21da781350 Update common.ts
Add OrgID
2023-04-19 19:28:33 +08:00
Yidadaa 0a79df3670 refactor: remove protocol env vars 2023-04-15 02:50:04 +08:00
Yifei Zhang 447dec9444 feat: close #2 add check account balance 2023-03-29 17:45:26 +00:00