Th-Underscore
487c66fa1c
Update keybind conditions
2025-05-27 00:57:06 -04:00
Th-Underscore
20b862e07c
Update key controls
...
Moved keybinds to serialized handler
Added regenerate on last navigation
2025-05-27 00:04:10 -04:00
Th-Underscore
9d1c1a8892
Clean up
2025-05-24 14:22:42 -04:00
Th-Underscore
b3c68773b8
Update logic
2025-05-22 19:21:58 -04:00
Underscore
fee48eb2a8
Merge branch 'dev' into dev
2025-05-21 18:27:56 -04:00
oobabooga
9d7a36356d
Remove unnecessary js that was causing scrolling issues
2025-05-18 10:56:16 -07:00
Underscore
fcdc4b6e0c
Merge branch 'dev' into dev
2025-05-17 07:00:14 -04:00
oobabooga
e3bba510d4
UI: Only add a blank space to streaming messages in instruct mode
2025-05-16 17:49:17 -07:00
Th-Underscore
96d0498c8f
Revert accidental edit to JS indentation
2025-05-06 18:11:38 -04:00
Th-Underscore
2afeb2b900
Add always-select keybind for overriding toggle-off
2025-05-06 17:39:21 -04:00
oobabooga
2da197bba4
Refinement after previous commit
2025-05-04 18:29:05 -07:00
oobabooga
690d693913
UI: Add padding to only show the last message/reply after sending a message
...
To avoid scrolling
2025-05-04 18:13:29 -07:00
oobabooga
7853fb1c8d
Optimize the Chat tab ( #6948 )
2025-05-04 18:58:37 -03:00
Th-Underscore
bc0df8a518
UI: Add message versioning and navigation (integrated boogaplus extension)
...
- Created a new module (message_versioning.py) for managing message versioning logic and data storage
- Added relevant Gradio communication in ui_chat.py
- Updated chat.py to append messages to versioning history and other history-related operations
- Updated HTML generation to include message version navigation elements
- Implemented JavaScript functions for handling message version navigation, selection, and history management
- Added relevant CSS styling (handling all three message classes is a little messy, but changing the original class structure might be problematic)
Notes:
- Doesn't always update on first load via `shared.gradio['unique_id'].select()`
- No go-to-first or go-to-last nav arrows
- Some of the methods and variables are... long-winded
- Have only tested with a couple extensions, but this _shouldn't_ break anything and should be completely backwards-compatible
- Haven't put any documentation for controls (Ctrl+Left/Right Arrow for navigation, Ctrl+Up/Down Arrow as an alternative for selection)
- The original footer buttons aren't set to full opacity when the message is selected, only the new nav container
- Output file extension is `.boogaplus` cuz it's cool
- Tried using `None` as a placeholder in the history storage dict (`null` in the JSON) instead of always saving the text to save space, but sometimes leads to client-server issues
2025-05-04 14:57:19 -04:00
oobabooga
d9de14d1f7
Restructure the repository ( #6904 )
2025-04-26 08:56:54 -03:00
oobabooga
a0492ce325
Optimize syntax highlighting during chat streaming ( #6655 )
2025-01-11 21:14:10 -03:00
oobabooga
3a722a36c8
Use morphdom to make chat streaming 1902381098231% faster ( #6653 )
2025-01-11 12:55:19 -03:00
oobabooga
979e1f1bd6
Fix a bug after 9163951f3a
2025-01-01 17:57:09 -08:00
oobabooga
9163951f3a
UI: reduce the CPU usage during text streaming
2025-01-01 17:49:57 -08:00
oobabooga
0a15cff6a0
UI: close sidebars by clicking outside their areas on mobile
2024-12-18 12:27:06 -08:00
oobabooga
636a6621cc
UI: fix sidebars closing when typing on mobile
2024-12-18 12:16:59 -08:00
oobabooga
0c069e5b3f
UI: remove obsolete js event
2024-12-18 12:16:26 -08:00
oobabooga
d769618591
Improved UI ( #6575 )
2024-12-17 00:47:41 -03:00
oobabooga
d364aa0a3c
Lint
2024-10-01 10:22:57 -07:00
Hanusz Leszek
e4b0467f9f
Add beforeunload event to add confirmation dialog when leaving page ( #6279 )
2024-09-29 01:14:19 -03:00
oobabooga
6bab4c2faa
UI: add back single $ for equations
2024-07-26 23:03:53 -07:00
oobabooga
9e82f8c394
UI: Fix chat sometimes not scrolling down after sending a message
2024-07-26 22:35:30 -07:00
oobabooga
e777b73349
UI: prevent LaTeX from being rendered for inline "$"
2024-07-23 19:04:19 -07:00
oobabooga
e1085180cf
UI: better handle scrolling when the input area grows
2024-07-21 21:20:22 -07:00
oobabooga
f77cf159ba
UI: fix a glitch when switching tabs with "show controls" unchecked
2024-07-02 20:57:03 -07:00
oobabooga
220c1797fc
UI: do not show the "save character" button in the Chat tab
2024-06-28 22:11:31 -07:00
oobabooga
5c6b9c610d
UI: allow the character dropdown to coexist in the Chat tab and the Parameters tab ( #6177 )
2024-06-29 01:20:27 -03:00
oobabooga
3691451d00
Add back the "Rename chat" feature ( #6161 )
2024-06-25 22:28:58 -03:00
oobabooga
e7e1f5901e
Prompts in the "past chats" menu ( #6160 )
2024-06-25 15:01:43 -03:00
oobabooga
a43c210617
Improved past chats menu ( #6158 )
2024-06-25 00:07:22 -03:00
oobabooga
564a3e1553
Remove the awkward "Tab" keyboard shortcut
2024-06-23 22:31:07 -07:00
oobabooga
d5bde7babc
UI: improve the performance of code syntax highlighting
2024-05-06 17:45:03 -07:00
oobabooga
6761b5e7c6
Improved instruct style (with syntax highlighting & LaTeX rendering) ( #5936 )
2024-04-26 10:13:11 -03:00
oobabooga
1bdceea2d4
UI: Focus on the chat input after starting a new chat
2024-04-06 12:57:57 -07:00
oobabooga
168a0f4f67
UI: do not load the "gallery" extension by default
2024-04-06 12:43:21 -07:00
Lounger
0f68c6fb5b
Big picture fixes ( #5565 )
2024-02-25 14:10:16 -03:00
oobabooga
36c29084bb
UI: fix instruct style background for multiline inputs
2024-02-17 20:09:47 -08:00
oobabooga
904867a139
UI: fix scroll down after sending a multiline message
2024-02-17 19:27:13 -08:00
oobabooga
e1dd5ee2de
UI: focus on the chat input when switching to the chat tab
2024-01-10 05:12:49 -08:00
oobabooga
ec2da5adef
Docs: document keyboard shortcuts
2024-01-10 03:58:39 -08:00
oobabooga
89e7e107fc
Lint
2024-01-09 16:27:50 -08:00
oobabooga
4d730a759a
Focus on the rename text area when it becomes visible
2024-01-09 04:00:47 -08:00
oobabooga
4f7e1eeafd
Past chat histories in a side bar on desktop ( #5098 )
...
Lots of room for improvement, but that's a start.
2024-01-09 01:57:29 -03:00
oobabooga
dc1df22a2b
Press Tab to switch between current tab and Parameters tab ( #5210 )
2024-01-08 23:23:55 -03:00
Guanghua Lu
3bb4b0504e
Close the menu on second click. ( #5110 )
2024-01-04 13:52:11 -03:00