Commit graph

285 commits

Author SHA1 Message Date
oobabooga
504d3d9de1 Simplify the implementation 2025-05-27 18:42:07 -07:00
Underscore
fee48eb2a8
Merge branch 'dev' into dev 2025-05-21 18:27:56 -04:00
oobabooga
7f6579ab20 Minor style change 2025-05-20 21:49:44 -07:00
oobabooga
0d3f854778 Improve the style of thinking blocks 2025-05-20 21:40:42 -07:00
oobabooga
409a48d6bd
Add attachments support (text files, PDF documents) (#7005) 2025-05-21 00:36:20 -03:00
Daniel Dengler
c25a381540
Add a "Branch here" footer button to chat messages (#6967) 2025-05-20 11:07:40 -03:00
oobabooga
8e10f9894a
Add a metadata field to the chat history & add date/time to chat messages (#7003) 2025-05-20 10:48:46 -03:00
oobabooga
bd13a8f255 UI: Light theme improvement 2025-05-17 22:31:55 -07:00
oobabooga
366de4b561 UI: Fix the chat area height when "Show controls" is unchecked 2025-05-17 17:11:38 -07:00
Underscore
fcdc4b6e0c
Merge branch 'dev' into dev 2025-05-17 07:00:14 -04:00
oobabooga
4bf763e1d9 Multiple small CSS fixes 2025-05-16 18:22:43 -07:00
oobabooga
e3bba510d4 UI: Only add a blank space to streaming messages in instruct mode 2025-05-16 17:49:17 -07:00
oobabooga
5534d01da0
Estimate the VRAM for GGUF models + autoset gpu-layers (#6980) 2025-05-16 00:07:37 -03:00
Th-Underscore
e77d692146
Fix CSS typo 2025-05-06 18:25:49 -04:00
oobabooga
e4fb2475d2 UI: Multiple small style improvements (light/dark themes) 2025-05-06 14:02:15 -07:00
oobabooga
cbef35054c UI: CSS fix 2025-05-05 17:46:09 -07:00
oobabooga
530223bf0b UI: Fix the hover menu colors 2025-05-05 16:03:43 -07:00
oobabooga
76f947e3cf UI: Minor style change 2025-05-05 15:58:29 -07:00
oobabooga
bf5290bc0f Fix the hover menu in light theme 2025-05-05 08:04:12 -07:00
oobabooga
967b70327e Light theme improvement 2025-05-05 07:59:02 -07:00
oobabooga
6001d279c6 Light theme improvement 2025-05-05 07:42:13 -07:00
oobabooga
475e012ee8 UI: Improve the light theme colors 2025-05-05 06:16:29 -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
d9da16edba UI: Remove the chat input textarea border 2025-05-04 16:53:52 -07:00
oobabooga
84ab1f95be UI: Increase the chat area a bit 2025-05-04 15:21:52 -07:00
oobabooga
d186621926 UI: Fixes after previous commit 2025-05-04 15:19:46 -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
b71ef50e9d UI: Add a min-height to prevent constant scrolling during chat streaming 2025-05-02 23:45:58 -07:00
oobabooga
b21bd8bb1e UI: Invert user/assistant message colors in instruct mode
The goal is to make assistant messages more readable.
2025-05-02 22:43:33 -07:00
oobabooga
765fea5e36 UI: minor style change 2025-04-26 19:33:46 -07:00
oobabooga
363b632a0d Lint 2025-04-26 19:22:36 -07:00
oobabooga
d35818f4e1
UI: Add a collapsible thinking block to messages with <think> steps (#6902) 2025-04-25 18:02:02 -03:00
oobabooga
b6fffbd216 UI: minor style change 2025-04-25 05:37:44 -07:00
oobabooga
23399aff3c UI: minor style change 2025-04-24 20:39:00 -07:00
oobabooga
a90df27ff5 UI: Add a greeting when the chat history is empty 2025-04-24 20:33:40 -07:00
oobabooga
e99c20bcb0
llama.cpp: Add speculative decoding (#6891) 2025-04-23 20:10:16 -03:00
oobabooga
79a26d7a5c Lint 2025-03-29 18:49:48 -07:00
oobabooga
1bd208c219
Add a new chat style: Dark (#6817) 2025-03-29 22:47:10 -03:00
oobabooga
677d74a6a0 Revert "UI: improved scrollbar styles", add just a small change instead 2025-03-14 12:10:48 -07:00
oobabooga
6ab04698f6 UI: improve the light mode left sidebar color 2025-03-14 12:03:49 -07:00
oobabooga
f04a37adc2 UI: improved scrollbar styles 2025-03-14 05:20:15 -07:00
oobabooga
f074ffc31b UI: minor light theme improvement 2025-02-02 15:39:36 -08:00
oobabooga
5e99dded4e UI: add "Continue" and "Remove" buttons below the last chat message 2025-01-21 09:05:44 -08:00
oobabooga
facb4155d4 Fix morphdom leaving ghost elements behind 2025-01-11 20:57:28 -08:00
oobabooga
1b9121e5b8 Add a "refresh" button below the last message, add a missing file 2025-01-11 12:42:25 -08:00
oobabooga
a5d64b586d
Add a "copy" button below each message (#6654) 2025-01-11 16:59:21 -03:00
oobabooga
0e94d7075e UI: minor style fix on Windows 2025-01-09 13:12:30 -08:00
oobabooga
4ffc9ffc7a UI: fix a list style 2025-01-08 17:24:38 -08:00
oobabooga
d56b500568 UI: add padding to file saving dialog 2025-01-04 16:22:40 -08:00