Commit Graph

510 Commits

Author SHA1 Message Date
Jingguo Yao 3f5a189591 Not to detect user lang when running in Node
Use DEFAULT_LANG with Node. Remove the logging on the server side:

[Lang] failed to detect user lang.
2023-05-20 11:06:54 +08:00
Yidadaa b1ba3df989 feat: close #1478 new chat use global config as default 2023-05-20 00:39:52 +08:00
Yidadaa 203ac0970d feat: #1640 support free gpt endpoint 2023-05-19 23:53:27 +08:00
ShengYan, Zhang f8ef6278a5 fix: css on display chat names 2023-05-19 20:14:57 +08:00
Yifei Zhang 7f13a8d2bc
feat: support fast chatgpt mobile models 2023-05-19 18:34:48 +08:00
ShengYan, Zhang f6c268dc1e fix: allow to import a single mask 2023-05-19 10:39:34 +08:00
Yidadaa 50cfbaaab5 feat: partial locale type 2023-05-19 00:59:04 +08:00
Yidadaa de775511d0 feat: some en masks 2023-05-19 00:38:39 +08:00
Yidadaa a524a60c46 fix: #1611 show corret message when can not query usage 2023-05-19 00:27:25 +08:00
Yidadaa 6cf2fa02e5 fix: #1612 fill empty message with a placeholder 2023-05-19 00:24:25 +08:00
Yifei Zhang 1a8cb877db
Merge pull request #1605 from Allengl/update
add new mask 简历写手
2023-05-18 17:33:22 +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
guolong cf2404743d add new mask 简历写手 2023-05-18 16:49:30 +08:00
Yifei Zhang 38bffd423c
Merge pull request #1580 from Allengl/update
Add Korean translation 增加国际化语言:韩语
2023-05-18 11:38:54 +08:00
kirk.shan 789f3d993c fix content-type = text/event-stream;charset=utf-8 2023-05-18 10:25:06 +08:00
Allen d5376ab090
Merge branch 'Yidadaa:main' into update 2023-05-18 09:15:27 +08:00
Yidadaa 3fe521421f chore: dynamic server config 2023-05-18 02:15:30 +08:00
Yidadaa 85445c4ef2 chore: wont parse finished result 2023-05-18 02:09:05 +08:00
Yidadaa 5f2745c32a feat: handle non-stream response 2023-05-18 02:04:12 +08:00
Yidadaa 736c66f46a feat: stop all stale messages 2023-05-18 01:24:36 +08:00
Yidadaa 30676d118f fix: #1571 #1578 handle more error code 2023-05-18 00:14:29 +08:00
root e306ac0197 add type LocaleType 2023-05-17 23:20:48 +08:00
root 65c6b4af82 Add Korean translation 2023-05-17 22:59:35 +08:00
Yifei Zhang a402f646fe
Merge pull request #1562 from Gan-Xing/update
Add French Translation -- 增加法语翻译
2023-05-17 20:53:49 +08:00
ShengYan, Zhang 94a2104b55 fix: set openWhenHidden to be true 2023-05-17 17:20:17 +08:00
Gan-Xing 75bf75d552 法语翻译key值修改 2023-05-17 12:20:48 +08:00
Gan-Xing 5bbe59c9a2
Merge branch 'Yidadaa:main' into main 2023-05-17 12:01:44 +08:00
Yifei Zhang 31a874e24e
Revert "feat: close #1433 add french translation" 2023-05-17 11:18:21 +08:00
Yifei Zhang 987412db51
Merge pull request #1435 from Gan-Xing/update
add french translation -增加法语翻译
2023-05-17 10:46:30 +08:00
ShengYan, Zhang e00652ce86 fix: #1533 handle non-stream type 2023-05-17 08:50:50 +08:00
Gan-Xing dbb016c9e4
Merge branch 'Yidadaa:main' into main 2023-05-16 16:12:20 +08:00
simondby 44874fb5e0 fix: typo PresencePenlty -> PresencePenalty 2023-05-16 15:40:43 +08:00
Yifei Zhang daecd3efa1
Merge pull request #1534 from Quorafind/fix_enter_key_to_select_prompt
Fix: press enter to select prompt when set pressing `enter` key to submit
2023-05-16 15:33:36 +08:00
Yifei Zhang 86e4b58117
Merge pull request #1533 from legionhealth/github-copilot-mask
GitHub Copilot mask (english)
2023-05-16 15:33:27 +08:00
Daniel G. Wilson 7141962cce
Update en.ts to fix quotes for Copilot mask 2023-05-15 23:11:04 -05:00
Quorafind cf775e3487 fix: enter key cannot select prompt when using enter key to submit 2023-05-16 12:06:06 +08:00
Daniel G. Wilson 44e1bed57a
Update en.ts whoops actually fixed single / double quotes 2023-05-15 22:55:42 -05:00
Daniel G. Wilson 915ba07f86
Update en.ts - fixed single quotes to match original 2023-05-15 22:54:41 -05:00
Daniel G. Wilson a852c5d0c3
Update en.ts masks to include GitHub Copilot mask (leaked prompt) 2023-05-15 22:52:44 -05:00
PaRaD1SE98 8cde6cd4d7
Merge pull request #1 from PaRaD1SE98/fix_typo
fix: typo reqestTimeoutId -> requestTimeoutId
2023-05-16 10:01:45 +09:00
PaRaD1SE98 06534fa0ae
fix: typo reqestTimeoutId -> requestTimeoutId 2023-05-16 09:59:30 +09:00
Gan-Xing 8568fc3544
Merge branch 'Yidadaa:main' into main 2023-05-16 07:13:53 +08:00
Yidadaa 71cbf86b2c fixup: add more error info 2023-05-16 01:58:58 +08:00
Yidadaa aed6b34950 fix: #1498 missing text caused by streaming 2023-05-16 01:25:16 +08:00
Gan-Xing e9076c1748
Merge branch 'Yidadaa:main' into main 2023-05-16 00:33:18 +08:00
Yidadaa 8b0cf7d248 fix: #1509 openai url split 2023-05-16 00:22:11 +08:00
PaRaD1SE98 b357e2ecef
fix: typo IMPRTANT -> IMPORTANT 2023-05-15 10:03:11 +09:00
Gan-Xing 7b4e4c2172
Merge branch 'Yidadaa:main' into main 2023-05-15 07:31:52 +08:00
Yidadaa 9e602eb575 fixup: decode in stream mode 2023-05-15 02:01:50 +08:00