Add an option to include/exclude attachments from previous messages in the chat prompt

This commit is contained in:
oobabooga 2025-06-12 16:54:43 -07:00
parent b4d2a00e20
commit 2dee3a66ff
4 changed files with 8 additions and 4 deletions

View file

@ -12,6 +12,7 @@ def create_ui():
gr.Markdown("## Settings")
shared.gradio['toggle_dark_mode'] = gr.Button('Toggle light/dark theme 💡', elem_classes='refresh-button')
shared.gradio['paste_to_attachment'] = gr.Checkbox(label='Turn long pasted text into attachments in the Chat tab', value=shared.settings['paste_to_attachment'], elem_id='paste_to_attachment')
shared.gradio['include_past_attachments'] = gr.Checkbox(label='Include attachments/search results from previous messages in the chat prompt', value=shared.settings['include_past_attachments'])
with gr.Column():
gr.Markdown("## Extensions & flags")