Th-Underscore
097c5d2568
Pass only necessary values
2025-05-06 16:46:19 -04:00
Th-Underscore
a758d49115
Fix code styling
2025-05-04 22:32:34 -04: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
bfbde73409
Make 'instruct' the default chat mode
2025-04-24 07:08:49 -07:00
oobabooga
297a406e05
UI: smoother chat streaming
...
This removes the throttling associated to gr.Textbox that made words appears in chunks rather than one at a time
2025-04-09 16:02:37 -07:00
oobabooga
f843cb475b
UI: update a help message
2025-01-14 08:12:51 -08:00
oobabooga
c85e5e58d0
UI: move the new morphdom code to a .js file
2025-01-13 06:20:42 -08: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
4b3e1b3757
UI: add a "Search chats" input field
2025-01-02 18:46:40 -08:00
oobabooga
b8fc9010fa
UI: fix orjson.JSONDecodeError
error on page reload
2025-01-02 16:57:04 -08:00
oobabooga
75f1b5ccde
UI: add a "Branch chat" button
2025-01-02 16:24:18 -08:00
oobabooga
d769618591
Improved UI ( #6575 )
2024-12-17 00:47:41 -03:00
oobabooga
493f8c3242
UI: remove animation after clicking on "Stop" in the Chat tab
2024-07-27 15:22:34 -07:00
oobabooga
f32d26240d
UI: Fix the chat "stop" event
2024-07-26 23:03:05 -07:00
oobabooga
7e2851e505
UI: fix "Command for chat-instruct mode" not appearing by default
2024-07-24 15:04:12 -07:00
oobabooga
1815877061
UI: fix the default character not loading correctly on startup
2024-07-23 18:48:10 -07:00
oobabooga
79c4d3da3d
Optimize the UI ( #6251 )
2024-07-21 00:01:42 -03:00
oobabooga
f957b17d18
UI: update an obsolete message
2024-07-10 06:01:36 -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
8803ae1845
UI: decrease the number of lines for "Command for chat-instruct mode"
2024-06-28 21:41:30 -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
de69a62004
Revert "UI: move "Character" dropdown to the main Chat tab"
...
This reverts commit 83534798b2
.
2024-06-28 15:38:11 -07:00
oobabooga
3691451d00
Add back the "Rename chat" feature ( #6161 )
2024-06-25 22:28:58 -03:00
oobabooga
ac3f92d36a
UI: store chat history in the browser
2024-06-25 14:18:07 -07:00
oobabooga
83534798b2
UI: move "Character" dropdown to the main Chat tab
2024-06-25 11:25:57 -07:00
oobabooga
279cba607f
UI: don't show an animation when updating the "past chats" menu
2024-06-25 11:10:17 -07:00
oobabooga
3290edfad9
Bug fix: force chat history to be loaded on launch
2024-06-25 11:06:05 -07: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
386500aa37
Avoid unnecessary calls UI -> backend, to make it faster
2024-06-12 20:52:42 -07:00
oobabooga
1bdceea2d4
UI: Focus on the chat input after starting a new chat
2024-04-06 12:57:57 -07:00
oobabooga
0f536dd97d
UI: Fix the "Show controls" action
2024-04-05 12:18:33 -07:00
oobabooga
2a92a842ce
Bump gradio to 4.23 ( #5758 )
2024-03-26 16:32:20 -03:00
oobabooga
8152152dd6
Small fix after 28076928ac
2024-03-11 19:56:35 -07:00
oobabooga
28076928ac
UI: Add a new "User description" field for user personality/biography ( #5691 )
2024-03-11 23:41:57 -03:00
oobabooga
238f69accc
Move "Command for chat-instruct mode" to the main chat tab ( closes #5634 )
2024-03-08 12:52:52 -08:00
oobabooga
2174958362
Revert gradio to 3.50.2 ( #5640 )
2024-03-06 11:52:46 -03:00
oobabooga
63a1d4afc8
Bump gradio to 4.19 ( #5522 )
2024-03-05 07:32:28 -03:00
oobabooga
1f27bef71b
Move chat UI elements to the right on desktop ( #5538 )
2024-02-18 14:32:05 -03:00
oobabooga
76d28eaa9e
Add a menu for customizing the instruction template for the model ( #5521 )
2024-02-16 14:21:17 -03:00
oobabooga
0e1d8d5601
Instruction template: make "Send to default/notebook" work without a tokenizer
2024-02-16 08:01:07 -08:00
oobabooga
080f7132c0
Revert gradio to 3.50.2 ( #5513 )
2024-02-15 20:40:23 -03:00
DominikKowalczyk
33c4ce0720
Bump gradio to 4.19 ( #5419 )
...
---------
Co-authored-by: oobabooga <112222186+oobabooga@users.noreply.github.com>
2024-02-14 23:28:26 -03:00
oobabooga
89e7e107fc
Lint
2024-01-09 16:27:50 -08:00
oobabooga
b908ed318d
Revert "Rename past chats -> chat history"
...
This reverts commit aac93a1fd6
.
2024-01-09 05:26:07 -08:00
oobabooga
7af50ede94
Reorder some buttons
2024-01-09 04:11:50 -08:00
oobabooga
a9f49a7574
Confirm the chat history rename with enter
2024-01-09 04:00:53 -08:00
oobabooga
aac93a1fd6
Rename past chats -> chat history
2024-01-09 03:14:30 -08:00