mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-09 07:07:16 -04:00
- 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 |
||
---|---|---|
.. | ||
highlightjs | ||
katex | ||
morphdom | ||
dark_theme.js | ||
global_scope_js.js | ||
main.js | ||
save_files.js | ||
show_controls.js | ||
switch_tabs.js | ||
update_big_picture.js |