兀米
3120087992
perf : 代码细节优化
...
大神, 学习代码过程中发现的一个小小的点,887行已定义`const isUser = message.role === "user";`,此处可直接用isUser
2023-06-30 12:00:03 +08:00
Yidadaa
3937dad6a6
feat: close #2187 improve chat actions ux
2023-06-30 00:39:54 +08:00
Yidadaa
b044e274aa
feat: close #2136 click avatar to edit message
2023-06-29 01:31:27 +08:00
Yidadaa
ea6926cad3
feat: replace window.prompt with showPrompt
2023-06-29 00:09:56 +08:00
Yidadaa
3298961748
feat: replace window.confirm with showConfirm
2023-06-28 23:40:39 +08:00
Yidadaa
64c4f512ce
fixup: #2149 chat action button style
2023-06-28 01:15:55 +08:00
Yidadaa
5b1d45c1a9
fix : #2149 try to fix chat action button style
2023-06-28 01:09:25 +08:00
Yidadaa
bce74890dc
fix : #2149 try to fix chat action button style
2023-06-28 01:02:56 +08:00
Yidadaa
6caf79121b
feat: improve chat commands
2023-06-27 23:39:27 +08:00
Yidadaa
38c8ee8cd2
feat: improve message item buttons style
2023-06-27 23:29:53 +08:00
Yidadaa
d5c33a1183
fix : #2149 try to fix ChatAction style on ios mobile
2023-06-27 23:07:12 +08:00
Yorun
b003a374b8
fix: alignment of mobile settings page title.
2023-06-26 04:16:06 +00:00
Yifei Zhang
d62eb56886
Merge pull request #2133 from quzard/fix_pin_bug
...
Fix Pin Message
2023-06-26 01:43:20 +08:00
quzard
c2724c6aad
Fix Pin Message: when userMessageIndex === 0, pinning a message was not possible.
2023-06-26 01:36:27 +08:00
Yidadaa
82ec4474c2
feat: align chat page title center on mobile screen
2023-06-26 01:27:36 +08:00
Yidadaa
7893693706
feat: close #1615 pin messages to contextual prompts
2023-06-26 00:21:58 +08:00
Yidadaa
25ce6af36e
feat: new chat message actions style
2023-06-25 23:53:22 +08:00
Yidadaa
ae1ef3215b
feat: close #628 add chat commands
2023-06-24 23:38:11 +08:00
Yidadaa
5d06fa217c
feat: close #2013 add switch model button to chat actions
2023-06-24 22:41:13 +08:00
Yidadaa
50b1f7db12
feat: right-click to copy message to user input
2023-06-24 22:32:46 +08:00
dingjunjie
9278d7f851
refactor: 优化 useScrollToBottom
2023-06-24 16:37:29 +08:00
Yidadaa
fa9ceb5875
fix : #2087 chat box font size use global config
2023-06-23 20:57:43 +08:00
Yidadaa
93c666b03d
feat: close #2025 just use a smaller to-bottom threshold
2023-06-23 20:53:08 +08:00
Yidadaa
698be6671c
feat: enable drag area for tauri apps
2023-06-15 23:20:14 +08:00
Yidadaa
6264c02543
feat: add app logo and
...
release workflow
2023-06-15 02:49:08 +08:00
Yidadaa
a7e9356c16
fixup: #1762 optimize style on mobile screen
2023-06-13 03:04:09 +08:00
Yidadaa
88df4a2223
feat: close #1762 add hover text for chat input actions
2023-06-13 02:27:39 +08:00
Yidadaa
57514e91b6
fix : #1685 clear context index should be recoverable
2023-06-07 01:18:05 +08:00
Yifei Zhang
0439d122a5
Merge pull request #1678 from Yidadaa/export
...
feat: close #580 export messages as image
2023-05-22 01:02:58 +08:00
Yidadaa
4dad7f2ab6
feat: close #580 export messages as image
2023-05-22 00:59:36 +08:00
ShengYan, Zhang
23f6c2e8c9
fix: bug #1662
2023-05-21 11:58:10 +08:00
Yidadaa
05b1b8b240
feat: close #1382 only clear memory btn in chat config
2023-05-21 02:04:30 +08:00
Yidadaa
35cec0f1df
fixup: i18n and icon minor changes
2023-05-21 01:44:59 +08:00
Yidadaa
a19d238483
feat: close #1415 clear context button
2023-05-21 01:28:09 +08:00
Yidadaa
6d8c7ba140
feat: close #1626 hide context prompts in mask config
2023-05-20 20:08:17 +08:00
Yidadaa
af497c96ec
fix : #1612 infinite loading
2023-05-20 19:58:12 +08:00
Yidadaa
b1ba3df989
feat: close #1478 new chat use global config as default
2023-05-20 00:39:52 +08:00
Yidadaa
6cf2fa02e5
fix : #1612 fill empty message with a placeholder
2023-05-19 00:24:25 +08:00
Yidadaa
736c66f46a
feat: stop all stale messages
2023-05-18 01:24:36 +08:00
Quorafind
cf775e3487
fix: enter key cannot select prompt when using enter key to submit
2023-05-16 12:06:06 +08:00
Yidadaa
a3de277c43
refactor: #1000 #1179 api layer for client-side only mode and local models
2023-05-15 01:33:46 +08:00
Yifei Zhang
cdfcf0f068
Merge pull request #1421 from zxdclyz/hide-hints
...
Fix: click the prompt button to hide hints when it's already shown
2023-05-11 18:53:59 +08:00
liyuze
ec19b86ade
fix: click the prompt button to hide hints when it's already shown
2023-05-11 18:29:25 +08:00
ShengYan, Zhang
7bf74c6a5d
fix: bug #1413 cmd/alt/ctrl should be checked for arrowUp events
2023-05-11 16:08:34 +08:00
ShengYan, Zhang
cbb50c14e1
fix: bug #1413 input '/' when clicking icon to open prompt modal
2023-05-11 15:42:32 +08:00
Yidadaa
2b7f72deec
feat: close #1055 cmd/alt/ctrl + arrow up/down to switch window
2023-05-09 23:01:17 +08:00
Yidadaa
222301307f
feat: close #1301 support message actions
2023-05-09 00:39:00 +08:00
wsw
319959ad6e
refactor: determine userInput by trimming
2023-05-04 22:53:22 +08:00
Yidadaa
06268543d0
fixup
2023-05-03 16:24:25 +08:00
Yidadaa
58eadd6d7b
feat: close #782 select prompt with arrow down / up
2023-05-03 16:22:37 +08:00
Yidadaa
f250594e97
Merge branch 'main' into bugfix-0503
2023-05-03 15:56:02 +08:00
Yidadaa
c1b6828ed4
fix : #1201 wont close prompt list when blur
2023-05-03 15:55:46 +08:00
Yidadaa
116e16e30d
fixup
2023-05-02 02:52:25 +08:00
Yidadaa
a69cec89fb
perf: close #909 reduce message items render time
2023-05-02 00:31:44 +08:00
Yidadaa
1aaf4ae5bc
fix : #1126 can not select prompt
2023-05-01 23:39:54 +08:00
Yidadaa
ace3f7f532
Merge branch 'main' into session-config
2023-04-28 00:35:04 +08:00
Yidadaa
fb32770486
feat: i18n refactor and style adjustment
2023-04-28 00:34:37 +08:00
Yidadaa
401c1364be
fix: merge conflict
2023-04-27 01:18:09 +08:00
Yidadaa
c7c58ef031
feat: add i18n for mask
2023-04-27 01:16:21 +08:00
Shi Liang
0f9fe92fa3
修复在聊天很短没有覆盖整个区域时显示回到底部按钮的bug
2023-04-26 21:42:43 +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
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
雲霧
79f58f5c6a
fix: typo
2023-04-22 00:47:15 +08:00
Yidadaa
ae479f4a92
fix : #963 config not work
2023-04-22 00:12:07 +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
7e8973c9ff
feat: close #291 gpt-4 model uses black icon
2023-04-20 22:52:14 +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
Yidadaa
525a2ff9a7
fix : #866 remove unused retry messages
2023-04-17 22:51:14 +08:00
Yidadaa
12d4081311
feat: close #539 add delete message button
2023-04-16 18:55:29 +08:00
Yidadaa
dc3883ed1a
feat: close #118 add stop all button
2023-04-16 18:07:43 +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
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
Yifei Zhang
c1bb53c4e3
Revert "fix: autoscroll conflict"
2023-04-12 19:48:12 +08:00
betgo
4269775665
fix: autoscroll conflict
2023-04-11 14:27:34 +08:00
Yidadaa
3c1e81897a
fixup: wont show fullscreen icon on mobile
2023-04-10 01:13:33 +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
637cda5b4c
fix : #613 show all prompts when input /
2023-04-08 02:53:35 +08:00
Yidadaa
13035ecb0d
fix: auto grow textarea
2023-04-08 02:36:02 +08:00
leedom
406ed8a02a
Merge branch 'main' into textarea-height-optimize
2023-04-07 13:33:37 +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
3656c8458f
feat: textarea with adaptive height
2023-04-07 12:17:37 +08:00
Yidadaa
806587c8ea
fix : #512 Mobile renaming should not return to chat list
2023-04-06 23:47:47 +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
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
Yidadaa
c77f946be1
fixup
2023-04-06 04:01:53 +08:00
Yidadaa
8e560d2b2e
fix : #410 can not stop response
2023-04-06 03:19:33 +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