oobabooga
504d3d9de1
Simplify the implementation
2025-05-27 18:42:07 -07:00
Th-Underscore
451337c9a5
Clean up debug
2025-05-27 08:20:37 -04:00
Th-Underscore
11424f7a8d
Avoid duplicates when adding message version
...
Moves current index to existing version if already exists
2025-05-27 07:30:07 -04:00
Underscore
fac0ac4418
Merge branch 'oobabooga:dev' into dev
2025-05-27 07:22:58 -04:00
Th-Underscore
b30d7cc349
Fix duplicate version appending
2025-05-27 00:14:34 -04:00
Underscore
8531100109
Fix textbox text usage in methods ( #7009 )
2025-05-26 22:40:09 -03:00
Th-Underscore
9d1c1a8892
Clean up
2025-05-24 14:22:42 -04:00
Th-Underscore
b549ac9cfe
Basic changes for new structure
...
Removed unnecessary .boogaplus saving+loading and structure validation
Fix replace_last_reply (using 'text' as Textbox when MultimodalTextbox)
TODO: Merge message_versioning.py into chat.py (depending on how to make html_generator.py implement versioning HTML)
2025-05-22 18:28:08 -04:00
Underscore
fee48eb2a8
Merge branch 'dev' into dev
2025-05-21 18:27:56 -04:00
oobabooga
cc8a4fdcb1
Minor improvement to attachments prompt format
2025-05-20 21:31:18 -07:00
oobabooga
409a48d6bd
Add attachments support (text files, PDF documents) ( #7005 )
2025-05-21 00:36:20 -03:00
oobabooga
616ea6966d
Store previous reply versions on regenerate ( #7004 )
2025-05-20 12:51:28 -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
Underscore
fcdc4b6e0c
Merge branch 'dev' into dev
2025-05-17 07:00:14 -04:00
oobabooga
4920981b14
UI: Remove the typing cursor
2025-05-09 20:35:38 -07:00
oobabooga
1c7209a725
Save the chat history periodically during streaming
2025-05-08 09:46:43 -07:00
Jonas
fa960496d5
Tools support for OpenAI compatible API ( #6827 )
2025-05-08 12:30:27 -03:00
Th-Underscore
f35c1ae2b7
Update methods
...
Tweaked method names and typing
Removed logs, debugs, and other unnecessary lines
2025-05-07 09:23:16 -04:00
Th-Underscore
d722cf68f3
Lint
2025-05-06 17:39:30 -04:00
Th-Underscore
848088037e
Re-add final HTML generation after updating message version
2025-05-06 15:46:20 -04:00
Th-Underscore
950f756e36
Remove breaking duplicate history save
2025-05-06 15:11:52 -04:00
Th-Underscore
a758d49115
Fix code styling
2025-05-04 22:32:34 -04:00
oobabooga
d0211afb3c
Save the chat history right after sending a message
2025-05-04 18:52:01 -07: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
d10bded7f8
UI: Add an enable_thinking
option to enable/disable Qwen3 thinking
2025-04-28 22:37:01 -07:00
oobabooga
d9de14d1f7
Restructure the repository ( #6904 )
2025-04-26 08:56:54 -03:00
oobabooga
d35818f4e1
UI: Add a collapsible thinking block to messages with <think>
steps ( #6902 )
2025-04-25 18:02:02 -03:00
oobabooga
598568b1ed
Revert "UI: remove the streaming cursor"
...
This reverts commit 6ea0206207
.
2025-04-09 16:03:14 -07:00
oobabooga
6ea0206207
UI: remove the streaming cursor
2025-04-09 14:59:34 -07:00
oobabooga
26317a4c7e
Fix jinja2 error while loading c4ai-command-a-03-2025
2025-03-14 10:59:05 -07:00
Kelvie Wong
16fa9215c4
Fix OpenAI API with new param (show_after), closes #6747 ( #6749 )
...
---------
Co-authored-by: oobabooga <oobabooga4@gmail.com>
2025-02-18 12:01:30 -03:00
oobabooga
0360f54ae8
UI: add a "Show after" parameter (to use with DeepSeek </think>)
2025-02-02 15:30:09 -08:00
oobabooga
f01cc079b9
Lint
2025-01-29 14:00:59 -08:00
FP HAM
71a551a622
Add strftime_now to JINJA to sattisfy LLAMA 3.1 and 3.2 (and granite) ( #6692 )
2025-01-24 11:37:20 -03:00
oobabooga
4b3e1b3757
UI: add a "Search chats" input field
2025-01-02 18:46:40 -08:00
oobabooga
75f1b5ccde
UI: add a "Branch chat" button
2025-01-02 16:24:18 -08:00
oobabooga
2acec386fc
UI: improve the streaming cursor
2024-12-19 14:08:56 -08:00
oobabooga
d769618591
Improved UI ( #6575 )
2024-12-17 00:47:41 -03:00
oobabooga
350758f81c
UI: Fix the history upload event
2024-11-19 20:34:53 -08:00
Manuel Schmid
0f90a1b50f
Do not set value for histories in chat when --multi-user is used ( #6317 )
2024-09-29 01:08:55 -03:00
oobabooga
30b4d8c8b2
Fix Llama 3.1 template including lengthy "tools" headers
2024-07-29 11:52:17 -07:00
oobabooga
f32d26240d
UI: Fix the chat "stop" event
2024-07-26 23:03:05 -07:00
oobabooga
947016d010
UI: make the markdown LRU cache infinite (for really long conversations)
2024-07-24 11:54:26 -07:00
oobabooga
e637b702ff
UI: make text between quotes colored in chat mode
2024-07-23 21:30:32 -07:00
oobabooga
d05846eae5
UI: refresh the pfp cache on handle_your_picture_change
2024-07-21 10:17:22 -07:00
oobabooga
79c4d3da3d
Optimize the UI ( #6251 )
2024-07-21 00:01:42 -03:00
oobabooga
a210e61df1
UI: Fix broken chat histories not showing ( closes #6196 )
2024-07-04 20:31:25 -07:00
oobabooga
ed01322763
Obtain the EOT token from the jinja template (attempt)
...
To use as a stopping string.
2024-06-30 15:09:22 -07:00
oobabooga
3691451d00
Add back the "Rename chat" feature ( #6161 )
2024-06-25 22:28:58 -03:00