Commit Graph

957 Commits

Author SHA1 Message Date
Yidadaa fbc0236748 fix: #3174 should prompt to confirm to delete chat 2023-11-09 02:03:05 +08:00
Yidadaa 8c0ba1aee2 feat: close #2954 chat summary should be copyable 2023-11-09 01:51:33 +08:00
安忆 9cb889c34f
docs: up to date 2023-11-08 07:09:52 +08:00
Yidadaa 54a5332834 feat: sort model by name 2023-11-08 01:04:20 +08:00
Yidadaa c7321fddfb fixup 2023-11-08 00:34:31 +08:00
Yidadaa c5ca278253 feat: close #2908 allow to disable parse settings from link 2023-11-08 00:30:02 +08:00
Yidadaa 638fdd8c3e feat: default disable balance query 2023-11-08 00:20:34 +08:00
Yidadaa 836bf836d3 fix: #3152 system prompt should be injected 2023-11-07 23:54:30 +08:00
Yidadaa 6e52d14180 fix: #3016 disable sidebar transition on ios 2023-11-07 23:30:09 +08:00
H0llyW00dzZ d2d615c84a
Refactor KnowledgeCutoff
[+] fix(constant.ts): update DEFAULT_SYSTEM_TEMPLATE to include knowledgeCutoff and time variables
[+] feat(chat.ts): add support for injecting system prompts based on model configuration
2023-11-07 06:42:55 +07:00
H0llyW00dzZ 9f26c8cecb
Fix Typo [GPT-4]
[+] fix(constant.ts): fix typo in model name, change "ggpt-4-1106-preview" to "gpt-4-1106-preview"
2023-11-07 06:33:07 +07:00
H0llyW00dzZ cd1f082c52
Feat Models [GPT-4] [GPT-3.5] [128K context]
[+] feat(constant.ts): add new models to DEFAULT_MODELS array
2023-11-07 06:08:06 +07:00
Yifei Zhang 65c4a0c319
feat: close #3031 user can set larger font size 2023-10-16 11:52:45 +08:00
Surav Shrestha 986d34fb3e docs: fix typo in app/masks/en.ts 2023-10-12 21:22:35 +05:45
Yifei Zhang 1e77df381a
Update constant.ts 2023-10-12 17:31:29 +08:00
H0llyW00dzZ 1604ed91fb
Merge branch 'Yidadaa:main' into masks 2023-10-11 07:35:40 +07:00
H0llyW00dzZ 74fcaab5e9
Refactor Mask UI Page [Masks]
[+] refactor(mask.tsx): refactor simple search to be case-insensitive
2023-10-11 04:36:04 +07:00
Jason O'Gray ea59ab5176
Fix type in sync.ts
Simple typo fix.
2023-10-10 11:24:45 -04:00
Yifei Zhang f54db695af
fix: #2981 full screen button not works 2023-10-10 11:54:25 +08:00
Yifei Zhang fd413c7b52
Merge pull request #2947 from KeithHello/main 2023-10-09 22:45:56 +08:00
Kong Gaowen bdb49b1171
修改界面
似乎这里引入了一个逻辑判断错误,会导致打包之后的界面变宽变高。
2023-10-09 18:50:10 +08:00
GH Action - Upstream Sync 5933b3d7eb Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web 2023-10-08 00:19:29 +00:00
Yifei Zhang 4c8d606fae
Merge pull request #2950 from PeterDaveHello/locale-tw 2023-10-08 00:20:39 +08:00
Yifei Zhang 13c1d2fd2b
Merge pull request #2946 from H0llyW00dzZ/ClientApp 2023-10-07 23:50:49 +08:00
Yifei Zhang 5a2cc6f154
Merge pull request #2927 from lifeeric/MACOS 2023-10-07 23:10:43 +08:00
Peter Dave Hello 88f8c43472 Improve tw locale 2023-10-07 23:06:20 +08:00
KeithHello 1505372e20 Change log
-   config.ts
    -   line 72: remove type confirmation of x as x always has type 'number'
    -   line 135: remove the redundant local variable
-   chat.ts
    -   delete the unused import
2023-10-04 18:08:29 +09:00
KeithHello ad5093ce05 Change log
-   config.ts
    -   line 72 remove type confirmation of x as x always has type 'number'
    -   line 135 remove redundant local variable
-   chat.ts
    -   delete unused import
2023-10-04 17:40:23 +09:00
H0llyW00dzZ b558d1afc6
Feat & Fix "Client App [Notification]"
[+] feat(update.ts): add support for localization in update notifications
[+] fix(update.ts): add missing semicolon in useUpdateStore function
2023-10-04 02:10:26 +07:00
H0llyW00dzZ ddfd05b008
Fix & Feat Client App [Notification]
[+] fix(update.ts): remove unnecessary notification sending when permission is not granted
[+] feat(update.ts): add notification for already up to date version
2023-10-03 09:12:41 +07:00
H0llyW00dzZ d2ad01a9ff
Client App Fix Issue [Bug] 'export' button does not work #2884
[+] fix(exporter.tsx): add async keyword to download function
[+] feat(exporter.tsx): add support for saving image file using window.__TAURI__ API
[+] feat(global.d.ts): add types for window.__TAURI__ API methods
[+] feat(locales): add translations for download success and failure messages
[+] feat(sync.ts): add support for generating backup file name with date and time
[+] fix(utils.ts): add async keyword to downloadAs function and add support for saving file using window.__TAURI__ API
2023-10-03 08:49:03 +07:00
H0llyW00dzZ 64a17abfe2
Client App [Notification]
[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration
2023-10-03 08:08:11 +07:00
H0llyW00dzZ 04b638aa06
Fix & Refactor UI Page [Auth Page]
[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field
2023-10-01 00:23:19 +07:00
H0llyW00dzZ 31e30906d0
Refactor Locale Indonesia
[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message
2023-09-30 22:59:24 +07:00
H0llyW00dzZ bc00be9065
Feat & Fix UI Page [Auth Page]
[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat
2023-09-30 22:33:18 +07:00
H0llyW00dzZ 4a599e986f
UI Page [Auth Page]
[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)
2023-09-30 22:16:34 +07:00
EricGit f1ca03e378
[FIXED] now it should detects all macintosh 2023-09-28 13:21:17 -04:00
Eric R f3d5fc7a84 [FIXED] now the default key should be CMD on MacOS 2023-09-28 06:50:31 -04:00
Eric R 3bfcdf9c41
[ADDED] MacOS detect 2023-09-28 06:10:22 -04:00
Algorithm5838 398e229c77
Update chat.tsx 2023-09-26 21:49:17 +03:00
Algorithm5838 6a61fe5776
Update chat.tsx 2023-09-26 20:45:09 +03:00
H0llyW00dzZ 70b0580fb7
UI Page [sidebar]
[+] fix(sidebar.tsx): update onClick function to conditionally navigate to different paths based on config.dontShowMaskSplashScreen value

Ref : [Feature] Make the mask selection more streamlined Yidadaa#2895
2023-09-26 04:59:19 +07:00
Yifei Zhang 23eb7732d7
feat: support more http status check for webdav 2023-09-20 17:47:35 +08:00
Yifei Zhang 26e50cefea
Update chat.tsx 2023-09-20 02:09:14 +08:00
Yifei Zhang 588e907181
Merge pull request #2873 from Yidadaa/bugfix-0919 2023-09-19 23:42:09 +08:00
Yidadaa eae7d6260f fix: should not tight border in desktop app 2023-09-19 23:26:52 +08:00
Yifei Zhang 37b49400db
Update constant.ts 2023-09-19 11:03:03 +08:00
Yidadaa f1e7db6a88 feat: auto fill upstash backup name 2023-09-19 03:33:17 +08:00
Yidadaa 83fed42997 feat: add upstash redis cloud sync 2023-09-19 03:18:34 +08:00
Yidadaa 59fbadd9eb fixup 2023-09-19 02:21:31 +08:00
Yidadaa adb860b464 fix: #2820 try to fix 520 error code 2023-09-19 02:12:43 +08:00
Yidadaa 61ca60c550 fix: #2817 min-height for landscape orientation on mobile phone 2023-09-19 01:58:52 +08:00
Yidadaa d713d01600 feat: close #2848 click drag icon to toggle sidebar width 2023-09-19 01:47:15 +08:00
Gerhard Tan c900459f73 Encode google font url 2023-09-18 10:22:07 +08:00
Yifei Zhang 3e1514239c
Merge pull request #2839 from a6z6/main 2023-09-15 15:17:46 +08:00
Amor Zara bd69116df2
Update route.ts
Correct typo error and make warning more specific.
2023-09-15 11:21:42 +08:00
Algorithm5838 6535986484
Update markdown.tsx 2023-09-15 06:06:34 +03:00
Yifei Zhang e03db9c2d5
Merge pull request #2826 from H0llyW00dzZ/language 2023-09-14 10:49:44 +08:00
H0llyW00dzZ 261bf0b298
Changes "Nama" -> "User" 2023-09-13 20:49:22 +07:00
H0llyW00dzZ 5a7bdcfe59
[+] Some improvements to the Indonesian language. 2023-09-13 20:17:30 +07:00
H0llyW00dzZ 4f3261b262
[+] Some improvements to the Indonesian language. 2023-09-13 20:05:58 +07:00
yhua1998 48e6087b1b fix: The width of the sidebar changes abruptly by dragging it multiple times over and over again (bouncing) 2023-09-13 16:55:31 +08:00
yhua1998 28103c901d
Refactor: sidebar drag 2023-09-13 16:24:21 +08:00
yhua1998 368701610f
fix: Width changes abruptly when dragging the sidebar (jumps)
In useRef is non-responsive, we can't get the modified config.sidebarWidth dynamic modification value in handleMouseUp
2023-09-13 13:57:30 +08:00
Yifei Zhang 74e32efa7d
Merge pull request #2819 from Yidadaa/webdav 2023-09-13 02:56:10 +08:00
Yidadaa dc555b2206 fixup 2023-09-13 02:52:28 +08:00
Yidadaa 6f83fbd212 feat: add webdav support 2023-09-13 02:51:02 +08:00
B0zal b5e89d4440
[+] Updated Auth Page
- Made changes to the Auth Page to reset the input field for the access code when the "Later" button is clicked.
This ensures that only expected user is logged by entering access code or entering their OpenAI API Key, mitigating the risk of small bug issue
2023-09-12 07:00:23 +07:00
B0zal 605dd72354
[+] CodeQL Report Fix log injection vulnerability in useSyncStore
Severity : High
Sanitize the 'res' object before logging it in the 'check' method of useSyncStore to prevent log injection attacks.
The 'res' object is now sanitized by extracting only the necessary properties ('status', 'statusText', and 'headers') and logging the sanitized object instead.
This ensures that only safe and expected data is logged, mitigating the risk of log injection vulnerabilities.
2023-09-11 08:49:08 +07:00
Yifei Zhang 9770b65146
Merge pull request #2798 from Yidadaa/backup 2023-09-11 00:41:25 +08:00
Yidadaa 57158890c3 fixup 2023-09-11 00:39:56 +08:00
Yifei Zhang 6f8f490fdd
Merge pull request #2797 from Yidadaa/backup 2023-09-11 00:36:24 +08:00
Yidadaa 415e9dc913 fixup: minor sync fixup 2023-09-11 00:34:51 +08:00
Yifei Zhang 1487762925
Merge pull request #2796 from Yidadaa/backup 2023-09-11 00:27:51 +08:00
Yidadaa c73a91a0f5 fixup: fix type errors 2023-09-11 00:24:05 +08:00
Yidadaa 5dced28088 fixup: add en locales 2023-09-11 00:22:14 +08:00
Yidadaa 38f6956e71 feat: close #2754 add import/export to file 2023-09-11 00:20:23 +08:00
shoito 505c8cde81
improve japanese translations 2023-09-09 16:10:24 +09:00
Yidadaa 885f2a3226 feat: close #2752 auto re-fill unfinished input 2023-09-05 01:54:28 +08:00
Yifei Zhang 107b584085
Merge pull request #2705 from kfear1337/language 2023-08-28 01:02:23 +08:00
Yifei Zhang 6d8416f838
Merge pull request #2713 from kfear1337/CodeQL-Report 2023-08-28 00:54:58 +08:00
Yifei Zhang 876a0cb6f7
Merge pull request #2717 from Yidadaa/bugfix-0827 2023-08-28 00:51:54 +08:00
Yidadaa 3bd76b9156 feat: close #2580 only use 3.5 to summarize when not using custom models 2023-08-28 00:02:52 +08:00
B0zal 22a6819f7b
Security Update
[+] Protect Prototype
2023-08-26 22:16:29 +07:00
B0zal 5e23ad2db1
Security Update
Potentially unsafe external link
2023-08-26 22:16:29 +07:00
B0zal 63c93a42b5
[+] Fixed language missing for finetuned 2023-08-25 18:15:50 +07:00
B0zal e6cc1625b5
[+] FineTuned Sysmessage Depends for local language
this for JSON Exporter
2023-08-25 17:48:25 +07:00
B0zal f65b0128e7
Issue #2702 should be fixed now kiw kiw
where the ChatGPTicon.src
glitches and breaks when exporting the image for the second time without refreshing the page.
2023-08-25 17:46:19 +07:00
B0zal 507b7fee56
[+] Language indonesia (my country) 2023-08-25 17:42:02 +07:00
Yifei Zhang b3fd56c2c1
Merge pull request #2685 from reece00/456 2023-08-24 11:12:47 +08:00
B0zal 0113d4499b
[Feature] Better JSON Exporter #2692
[+] A view looks better
[+] auto minify json when click a copy in markdown and download

Co-Authored-By: wangwentong-lunaon <39506652+wangwentong-lunaon@users.noreply.github.com>
Co-Authored-By: Yifei Zhang <yidadaa@qq.com>
Co-Authored-By: B0zal <48602426+kfear1337@users.noreply.github.com>
2023-08-23 21:14:43 +07:00
reece00 4d3fdbdd80
The mobile terminal ishitbottom does not perform -10 2023-08-22 12:35:51 +08:00
Yifei Zhang e1142216ec
fix: #2672 should use correct resend index 2023-08-21 18:33:45 +08:00
GH Action - Upstream Sync 3aeb2c1230 Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web 2023-08-19 01:06:19 +00:00
Yifei Zhang 484d1e7396
Merge pull request #2649 from pichuang/zh-tw 2023-08-18 18:40:30 +08:00
Clarence Dan aa3f96f89c
Update globals.scss 2023-08-18 18:18:16 +08:00
Clarence Dan 16685ddb6c Update chat.module.scss 2023-08-18 17:21:58 +08:00
Clarence Dan e78b15b9f0 Update chat.module.scss
Specify styles for iOS devices.
2023-08-18 17:12:02 +08:00
Algorithm5838 35b0bd76f8
Update markdown.tsx 2023-08-18 08:12:27 +03:00
Phil Huang 1d7286c161
Improve the text in tw.ts
Adoption of text that is more closely aligned with the usage of zh-tw
2023-08-17 23:50:38 +08:00
Yidadaa ed62c87156 feat: close #2638 hide auth page and use better unauth tips 2023-08-15 22:50:42 +08:00
Yidadaa 840277f584 fix: #2566 click avatar to edit context messages 2023-08-15 22:42:55 +08:00
wangwentong b380421fd5 support json export 2023-08-15 13:32:34 +08:00
Yifei Zhang 20882a7598
Merge pull request #2629 from Yidadaa/bugfix-0814 2023-08-14 22:13:56 +08:00
Yifei Zhang 9d3dff47d2
Merge pull request #2627 from imldy/dev_title-generation-checkbox 2023-08-14 22:12:26 +08:00
Yidadaa db5c7aba78 fix: #2615 scrollbar jitter under certain message counts 2023-08-14 22:11:38 +08:00
Yidadaa e8e01aa60d feat: close #2618 use correct html lang attr 2023-08-14 21:55:18 +08:00
Yidadaa ae8226907f feat: close #2621 use better default api url 2023-08-14 21:36:29 +08:00
imldy 803b66ae9d chore: Concise description 2023-08-14 20:47:02 +08:00
imldy 20a508e2d6 feat: add autoGenerateTitle option
(cherry picked from commit 656ab94a9c4edfee820616b8cfc39f5ee9952a3a)
2023-08-14 20:42:09 +08:00
Yifei Zhang 808e4b38a3
fixup 2023-08-14 11:10:02 +08:00
Yifei Zhang a496bc5a63
fix: #2614 better rtl detecting algo 2023-08-14 10:57:24 +08:00
Yifei Zhang c94713475f
Update globals.scss 2023-08-13 02:47:07 +08:00
Yifei Zhang 0b7de6f7b2
fix: #2594 trim the / 2023-08-10 10:47:06 +08:00
Yifei Zhang 67c8ec6d7e
chore: change ACCESS_CODE_PREFIX to nk- 2023-08-09 15:27:08 +08:00
Yifei Zhang 9420fd4946
Merge pull request #2585 from Yidadaa/bugfix-0808 2023-08-08 21:38:42 +08:00
Yidadaa b14c5cd89c fix: #2485 one-time-use body 2023-08-08 21:36:37 +08:00
Yidadaa 4ab9141429 fix: #2564 should not clear message when error 2023-08-08 21:24:45 +08:00
Yidadaa 769c2f9f49 feat: close #2583 do not summarize with gpt-4 2023-08-08 21:22:41 +08:00
7lsu d1096582a5 font family display enhance 2023-08-07 17:44:32 +08:00
Yifei Zhang 543989151f
Update constant.ts 2023-08-04 19:24:10 +08:00
Yifei Zhang 7da83987e4
chore: use bigger page size and render msg count 2023-08-04 15:45:16 +08:00
Yidadaa 523d553dac fix: clear btn should display in correct place 2023-08-04 02:58:02 +08:00
Yidadaa 3e63f6ba34 feat: disable auto focus on mobile screen 2023-08-04 02:43:55 +08:00
Yidadaa bc5ddc4541 fixup: improve auto scroll algo 2023-08-04 02:39:32 +08:00
Yidadaa 203067c936 feat: close #2545 improve lazy load message list 2023-08-04 02:16:44 +08:00
Yidadaa 75d4eca722 chore: smaller auto scroll interval 2023-08-02 23:51:01 +08:00
Yidadaa b5ef552c25 feat: improve auto scroll ux and edit model title 2023-08-02 23:35:51 +08:00
Yidadaa cbabb9392c feat: improve ChatAction ux 2023-08-02 22:53:36 +08:00
Levi Borodenko d975daf3f0
locale: add link to authentication page in i18n 2023-08-01 16:17:26 +02:00
7lsu cf625e3542
typo fix 2023-08-01 10:16:36 +08:00
Yidadaa 129e7afc16 fix: #2514 should not clear the message after editing message 2023-07-31 22:20:39 +08:00
Yidadaa 13576087f4 fix: #2393 try to fix chat list lag 2023-07-25 22:59:21 +08:00
Yidadaa 7c2fa9f8a4 feat: close #2449 edit / insert / delete messages modal 2023-07-21 00:24:26 +08:00
Yidadaa e5f6133127 feat: close #2447 pre-fill key/code/url 2023-07-20 23:17:58 +08:00
Hopelwj b9895ecadd
Merge branch 'Yidadaa:main' into main 2023-07-18 19:39:59 +08:00
liuweijie 322eb66fdf fix: useAccessStore filter spaces 2023-07-18 19:38:16 +08:00
Yifei Zhang 70a4f94c81
Update home.tsx 2023-07-17 11:33:19 +08:00
Yifei Zhang f7e4b36746
Merge pull request #2412 from Yidadaa/fix-2409
fix: #2409 empty prompt id cause crash
2023-07-17 11:03:33 +08:00
Yifei Zhang c916cd1a87
Update mask.tsx 2023-07-17 11:00:45 +08:00
兰天游 442a529a72
feat: add type for import 2023-07-16 21:35:13 +08:00
兰天游 e1243f3d59
feat: add typings for metadata 2023-07-16 21:34:01 +08:00
Yidadaa af5f67d459 feat: close #2376 add babel polyfill 2023-07-16 16:32:22 +08:00
Yidadaa 30473ec41e fix: #2367 do not copy in async callback after sharing to ShareGPT 2023-07-16 16:14:57 +08:00
Yidadaa 3ddedc903e feat: improve dnd icon 2023-07-16 15:49:15 +08:00
Yifei Zhang e3c279b8be
Merge pull request #2389 from MarkShawn2020/fix-default-openai-url
fixed openai base url if empty
2023-07-16 15:20:26 +08:00
Yifei Zhang 08a8ac9971
Merge pull request #2388 from yikayiyo/feat-drag-prompts
feat: #2297 drag and drop in contextual prompts
2023-07-16 14:30:49 +08:00
Yifei Zhang 7073fd2f3b
Merge pull request #2392 from imldy/dev_SetInjectSystemPrompts
fix: enable `enableInjectSystemPrompts` attribute for old sessions
2023-07-16 14:29:50 +08:00
imldy a9f67a48a1 dev: use current inject configuration 2023-07-15 02:48:47 +08:00
imldy fd058cc693 fix: enable `enableInjectSystemPrompts` attribute for old sessions 2023-07-15 01:32:39 +08:00