Commit Graph

455 Commits

Author SHA1 Message Date
Yifei Zhang
2deb5cbc9e
fix: #1094 try to disable zoom on ios safari 2023-04-26 14:43:43 +08:00
Yidadaa
3cda44e05b fixup 2023-04-26 02:05:35 +08:00
Yidadaa
a7a8aad9bc feat: add mask crud 2023-04-26 02:02:46 +08:00
Yidadaa
ffa7302571 feat: add mask page 2023-04-25 00:49:27 +08:00
Peter Dave Hello
e5e2f6c2e1 Improve tw locale 2023-04-24 04:11:12 +08:00
Yidadaa
708c6829f7 fixup 2023-04-24 01:17:28 +08:00
Yidadaa
aeb986243c feat: add mask screen 2023-04-24 01:15:44 +08:00
Yidadaa
e654cee3c8 fixup: request params 2023-04-23 21:54:18 +08:00
Yidadaa
b23adf9d5d fixup 2023-04-23 01:37:47 +08:00
Yidadaa
7345639af3 feat: add session config modal 2023-04-23 01:27:15 +08:00
Yidadaa
4cdb2f0fa3 feat: session-level model config 2023-04-22 01:13:23 +08:00
雲霧
79f58f5c6a
fix: typo 2023-04-22 00:47:15 +08:00
Yifei Zhang
56d098c317
Merge pull request #980 from 0x9be00ff1/fix-presence-penalty-step
[Fix] adjust presence_penalty step 0.1
2023-04-22 00:43:44 +08:00
Yidadaa
a3ca8ea5c4 feat: new chat-item avatar 2023-04-22 00:35:50 +08:00
Yidadaa
ae479f4a92 fix: #963 config not work 2023-04-22 00:12:07 +08:00
Yidadaa
ab826363ea fix: #965 improve loading animation 2023-04-21 23:37:25 +08:00
Yidadaa
e1ce1f2f40 feat: close #976 esc to close modal 2023-04-21 23:28:53 +08:00
Yidadaa
209a727fe9 feat: close #928 summarize with gpt3.5 2023-04-21 23:22:02 +08:00
Zhenyu Zhu
4d45c07bf2 fix: adjust presence_penalty step 0.1 2023-04-21 18:52:32 +08:00
Shi Liang
ffb0fa25f1
Merge pull request #1 from shih-liang/patch-1
chat-stream: runtime = "experimental-edge";
2023-04-21 13:08:01 +08:00
Shi Liang
8966fd3b23
openai runtime = "experimental-edge"; 2023-04-21 13:03:38 +08:00
Shi Liang
b6a7104b60
chat-stream: runtime = "experimental-edge"; 2023-04-21 13:03:02 +08:00
Yidadaa
82ad0573be feat: close #380 collapse side bar 2023-04-21 02:52:53 +08:00
pBrambi
6a74d62e98 Czech 2023-04-20 19:26:31 +02:00
Yidadaa
5185166e3b fixup 2023-04-21 01:18:49 +08:00
Yidadaa
693dcf12d6 refactor: close #643 use react router 2023-04-21 01:12:39 +08:00
Yidadaa
55281ed548 feat: reactive isMobileScreen 2023-04-20 23:20:25 +08:00
Yidadaa
2390da1165 fix: #930 wont show delete for first message 2023-04-20 23:09:42 +08:00
Yidadaa
06d503152b feat: close #928 summarize with gpt-3.5 2023-04-20 23:04:58 +08:00
Yidadaa
2e9e69d66c fixup 2023-04-20 22:58:19 +08:00
Yidadaa
7e8973c9ff feat: close #291 gpt-4 model uses black icon 2023-04-20 22:52:14 +08:00
pBrambi
35ccfb14c2 Create cs.ts
Czech language translation
2023-04-20 01:02:43 +02:00
Yin Min
21da781350 Update common.ts
Add OrgID
2023-04-19 19:28:33 +08:00
Yifei Zhang
072a35b4ee
fix: #915 allow send 0 history messages 2023-04-19 11:20:07 +08:00
Yifei Zhang
e68f17b463
Merge pull request #902 from ClarenceYk/for_test
Update app/components/chat.tsx
2023-04-18 19:10:30 +08:00
Ma Yuke
dfcae92ae0 Update app/components/chat.tsx
fix: chat-body flickers when click-and-hold the scroll bar using mouse
2023-04-18 18:01:09 +08:00
aooyoo
d1653ded9a fix user prompt translation 2023-04-18 08:13:32 +00:00
Yifei Zhang
8da581695f
Merge pull request #893 from L1468999760/add_alpha
fix:delete user.svg
2023-04-18 11:55:28 +08:00
Yifei Zhang
9e46ca31dd
Merge pull request #892 from Yidadaa/improve-memory
feat: close #864 improve long term history
2023-04-18 11:54:24 +08:00
Yidadaa
ad1c8ffe21 fixup 2023-04-18 11:44:15 +08:00
Yifei Zhang
d75b7d49b8
feat: close #864 improve long term history 2023-04-18 11:42:08 +08:00
jtung4
53173d9053
Optimize topic and summary prompts in tw.ts 2023-04-18 11:38:26 +08:00
L1468999760
e68207be2c fix:delete user.svg 2023-04-18 11:34:33 +08:00
Yidadaa
789a779775 feat: user prompts 2023-04-18 01:34:12 +08:00
Yidadaa
fdc8278b90 feat: check usage throttle 2023-04-17 23:12:27 +08:00
Yidadaa
525a2ff9a7 fix: #866 remove unused retry messages 2023-04-17 22:51:14 +08:00
Ma Yuke
64e78329ec Update app/requests.ts
fix: displaying the number of subscription beyond two decimal places.
2023-04-17 11:53:09 +08:00
Yifei Zhang
b79845fcaa
fixup 2023-04-17 11:36:32 +08:00
Yifei Zhang
76ef5ef9a9
fixup 2023-04-17 11:34:33 +08:00
Yifei Zhang
cc053b148d
fix: #853 fetch duplex errors 2023-04-17 11:27:31 +08:00
Yidadaa
12d4081311 feat: close #539 add delete message button 2023-04-16 18:55:29 +08:00
Yidadaa
ea3e8a7459 fix: #829 filter empty prompt 2023-04-16 18:11:09 +08:00
Yidadaa
dc3883ed1a feat: close #118 add stop all button 2023-04-16 18:07:43 +08:00
tscherrie tscherru
f9906aba7f found typo 2023-04-16 07:43:38 +00:00
tscherrie tscherru
410695d823 some final language quality improvements 2023-04-16 07:11:36 +00:00
tscherrie tscherru
2c35c26749 fixed typo 2023-04-16 05:32:55 +00:00
tscherrie tscherru
f042d07ee7 added de to index and other files 2023-04-16 05:07:54 +00:00
tscherrie tscherru
4ce5f89c66 fixed german language translations 2023-04-16 04:16:04 +00:00
tscherrie tscherru
e0fa0d1936 Add german language translation de.tss 2023-04-16 04:00:31 +00:00
ilarioscandurra
98fd08d9e5 fix IT translation 2023-04-15 16:33:04 +02:00
Yidadaa
0a79df3670 refactor: remove protocol env vars 2023-04-15 02:50:04 +08:00
Yidadaa
47a2911ee2 feat: edit session title button 2023-04-15 02:37:24 +08:00
Yidadaa
fb14785cad fix: #804 disable auto scroll in textarea 2023-04-15 02:28:30 +08:00
jtung4
73216513dd Update tw.ts 2023-04-14 19:49:48 +08:00
Peanuts
7fc43b4745
Fix wrong spelling 2023-04-13 11:07:42 +08:00
Yifei Zhang
f6f07abf1d
Update markdown.tsx 2023-04-13 02:16:21 +08:00
Yidadaa
8363cdd9fa feat: close #680 lazy rendering markdown 2023-04-13 02:07:24 +08:00
Yidadaa
d790b0b372 feat: close #680 lazy load markdown dom 2023-04-12 23:27:28 +08:00
Yidadaa
9146b98285 fix: *.scss *.svg types 2023-04-12 23:04:45 +08:00
Yifei Zhang
c1bb53c4e3
Revert "fix: autoscroll conflict" 2023-04-12 19:48:12 +08:00
Yifei Zhang
a15bd3ce33
Merge pull request #715 from betgo/bugfix-scrollthumb
fix: autoscroll conflict
2023-04-12 11:05:53 +08:00
helloworld_xy
d8ef4a1031 fix:修复正常响应结果后额外追加‘出错了,请稍后再试’bug 2023-04-11 19:03:09 +08:00
Yifei Zhang
5a56bc3465
Merge pull request #688 from aooyoo/main
add Japanese
2023-04-11 15:37:23 +08:00
betgo
4269775665 fix: autoscroll conflict 2023-04-11 14:27:34 +08:00
peanut996
a1c709bb58 [refactor] rename ChatResponse. 2023-04-11 12:06:12 +08:00
Yidadaa
6841846613 fixup 2023-04-11 02:56:48 +08:00
Yidadaa
d6e6dd09f0 feat: dynamic config 2023-04-11 02:54:31 +08:00
Yidadaa
9b61cb1335 refactor: build/runtime/client configs 2023-04-11 01:21:34 +08:00
Yidadaa
7aee53ea05 fix: #507 break cjk chars in stream mode 2023-04-10 23:13:20 +08:00
aooyoo
042e989ebb fix spelling errors 2023-04-10 14:12:31 +00:00
aooyoo
7670b8b738 add new language, Japanese 2023-04-10 14:01:54 +00:00
Muhammet Demirel
d7edcadec7 Added new language, Turkish. 2023-04-10 12:04:30 +03:00
Yifei Zhang
150735b001
Update access.ts 2023-04-10 10:57:16 +08:00
Yidadaa
3c1e81897a fixup: wont show fullscreen icon on mobile 2023-04-10 01:13:33 +08:00
Yidadaa
09fd743e2e feat: wider app body 2023-04-10 00:56:44 +08:00
Yidadaa
6ae61c5357 fix: #522 resizable side bar 2023-04-10 00:54:17 +08:00
Yidadaa
eae5a8a2e6 feat: #577 maximum / minimium icon 2023-04-10 00:00:36 +08:00
Yidadaa
0e05733bbb fix: #589 improve unauthorized tips 2023-04-09 23:51:12 +08:00
Yidadaa
4a492264a1 fix: #641 delete wrong chat list 2023-04-09 23:41:16 +08:00
Yidadaa
174c745279 fix: #648 password input style 2023-04-09 23:35:45 +08:00
Yifei Zhang
72aa2bcad8
Update cn.ts 2023-04-09 13:31:33 +08:00
GH Action - Upstream Sync
037d4638ea Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web 2023-04-08 07:07:44 +00:00
MaYuKe
7d2e850c42
Update ui-lib.module.scss
Fix: icon-button can not be completely masked by popover.
2023-04-08 12:19:14 +08:00
GH Action - Upstream Sync
70b6507299 Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web 2023-04-07 21:07:51 +00:00
Yidadaa
45c8de42b9 fix: #528 wont send max_tokens 2023-04-08 03:03:07 +08:00
Yidadaa
637cda5b4c fix: #613 show all prompts when input / 2023-04-08 02:53:35 +08:00
ilarioscandurra
d935de3e57 Update: Confirmation on reset chats and settings 2023-04-07 20:50:06 +02:00
Yidadaa
13035ecb0d fix: auto grow textarea 2023-04-08 02:36:02 +08:00
Yifei Zhang
d6b2cf8bcb
Merge pull request #318 from leedom92/textarea-height-optimize
feat: textarea with adaptive height
2023-04-08 01:01:52 +08:00
Yorun
71d9fbc367
fix: hide toast on cancel session deletion on mobile 2023-04-07 14:51:08 +08:00
leedom
00d45e7cc4 fix: solve navigator undefined && merge from main 2023-04-07 13:47:34 +08:00
leedom
406ed8a02a Merge branch 'main' into textarea-height-optimize 2023-04-07 13:33:37 +08:00
leedom
de740ec57f feat: add calcTextareaHeight.ts 2023-04-07 12:42:47 +08:00
leedom
e5b4cb28fe fix: useEffect hooks 2023-04-07 12:39:27 +08:00
leedom
cb210d82e1 update: resizeTextarea 2023-04-07 12:33:09 +08:00
Mokou
58b956f7cc feat: Hot keys: Escape to close settings, Up Arrow to get last input 2023-04-07 12:26:22 +08:00
leedom
620b98fe6a Merge branch 'main' into textarea-height-optimize 2023-04-07 12:20:53 +08:00
leedom
3656c8458f feat: textarea with adaptive height 2023-04-07 12:17:37 +08:00
Yifei Zhang
6420f61566
fix: #537 delete chat button style 2023-04-07 11:23:10 +08:00
Yifei Zhang
905bf41cd8
Update utils.ts 2023-04-07 11:08:20 +08:00
leedom
a8a8becf96 merge 2023-04-07 07:29:17 +08:00
leedom
b8a605f07d merge 2023-04-07 07:18:53 +08:00
Yidadaa
5952064362 feat: #499 revert delete session 2023-04-07 00:14:27 +08:00
Yidadaa
806587c8ea fix: #512 Mobile renaming should not return to chat list 2023-04-06 23:47:47 +08:00
Yidadaa
f3dbe5a251 fix: #513 show toast after copying 2023-04-06 23:18:51 +08:00
Yifei Zhang
74cff2639b
Merge pull request #567 from leedom92/optimize-send-button
refactor: optimize component `IconButton`
2023-04-06 23:10:09 +08:00
leedom
cd671066f7 remove unnecessary judgment 2023-04-06 22:52:18 +08:00
Leedom
fb3f5a414a
Update button.module.scss 2023-04-06 21:34:00 +08:00
leedom
b7cdea1b82 refactor: optimize send button 2023-04-06 21:02:48 +08:00
xiaotianxt
dd20c36a55 fix: distinguish PC/Mobile behavior on auto-scroll
The chat list should be set to auto-scroll on mobile screen when the
input textarea is focused. It should not behave like that on PC screen
because user may want to refer to previous content.
2023-04-06 20:38:21 +08:00
Yifei Zhang
85bf4ac077
fix: #559 custom input ui style 2023-04-06 18:16:49 +08:00
Yifei Zhang
29bc9a45df
Merge pull request #535 from zhongmeizhi/main
fix: 兼容不同浏览器的input range
2023-04-06 17:47:05 +08:00
Yifei Zhang
f7e42179d0
fixup 2023-04-06 17:34:17 +08:00
Yifei Zhang
6823839f4b
fixup 2023-04-06 17:28:09 +08:00
Yifei Zhang
a68721fcf2
Update requests.ts 2023-04-06 17:14:19 +08:00
Mokou
d92108453f fix: 兼容不同浏览器的input range兼容 2023-04-06 12:39:31 +08:00
Yifei Zhang
f71354faed
Merge pull request #509 from xiaotianxt/feat/dnd-xiaotianxt
Drag & Drop support for ChatList
2023-04-06 04:12:00 +08:00
Yifei Zhang
b1e26a5063
Merge pull request #510 from Yidadaa/user-prompt
feat: split docs, clear messages and fix stop response
2023-04-06 04:02:48 +08:00
Yidadaa
c77f946be1 fixup 2023-04-06 04:01:53 +08:00
Yidadaa
acfe6eec18 fix: #463 add subscrption total amount 2023-04-06 03:56:54 +08:00
Yidadaa
dce2546f5f fix: #451 override default model config 2023-04-06 03:26:42 +08:00
Yidadaa
8e560d2b2e fix: #410 can not stop response 2023-04-06 03:19:33 +08:00
xiaotianxt
f920b2001d
performance: introduce lazy-loading for ChatList
Reduce the first load JS bundle size using next/dynamic.
2023-04-06 02:41:27 +08:00
Yidadaa
c2b37f811b feat: close #469 support reset session and do not send memory 2023-04-06 02:37:12 +08:00
Yidadaa
0e77177a60 fix: #439 context prompt input with textarea 2023-04-06 02:05:44 +08:00
Yifei Zhang
9aaceda40d
Merge pull request #482 from zyqq/main
fix(utils): 修复复制问题
2023-04-06 01:48:20 +08:00
xiaotianxt
301cbbfdfb
feat(dnd): add drag and drop feature 2023-04-06 01:43:10 +08:00
Yidadaa
7da0cc6551 doc: update screenshots 2023-04-06 01:22:29 +08:00
Yidadaa
de78fd07c5 doc: update document 2023-04-06 00:41:44 +08:00
Yifei Zhang
2ae62d9c0e
Merge pull request #497 from waltcow/main
fix 头像无法正常显示
2023-04-05 22:07:17 +08:00
Yorun
909e2ab60f fix: header title overflow 2023-04-05 11:32:45 +00:00
waltcow
f4fc682fa3
add getEmojiUrl as util function 2023-04-05 15:48:44 +08:00
waltcow
80904ac2bb
fix import 2023-04-05 15:31:46 +08:00
waltcow
91322f33eb
emoji resouce CDN format override 2023-04-05 15:29:25 +08:00
Jun Wu
962f434e17 perf: memorize markdown rendering
Markdown rendering can take time. Use `React.memo` for better performance.

The improvement is especially visible if there are complex elements. For
example, a `<Chat />` with an output of `如何推导三次方程求根方程?` (which
uses latex) now renders in about 5ms, down from ~140ms.

Related: #302
2023-04-05 00:16:10 -07:00
Jun Wu
2625c1246b
chore: removed redundant checkUsage
`checkUsage()` was already called by another `useEffect`.
There is no need to call it twice.
2023-04-04 22:41:33 -07:00
yiqiuzheng
0af55366f1 fix(utils): 修复复制问题 2023-04-05 02:49:44 +08:00
Yifei Zhang
bd7567fa85
Merge pull request #434 from gaogao1030/optimize
[opt]  Optimize the display of exported chat history content.
2023-04-05 02:08:38 +08:00
MaYuKe
8ba1dedcea
Update settings.tsx
Update parameter `step` of historyMessageCount to 1.
2023-04-04 23:32:19 +08:00
kakawanyifan
0508b0080f linkTarget={'_blank'},这个对于对话框中的链接,会在新的tab页打开,体验更好。 2023-04-04 16:33:36 +08:00