Paste Text as Attachment-Like Elements #7143
mawburn
started this conversation in
Feature Requests & Suggestions
Replies: 2 comments 2 replies
-
Thanks! Seems closely related: #7135 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is there a reason why we don't want to treat this as a file upload? We can upload these blobs of text as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Description
This feature would treat large blocks of pasted text as attachment-like elements in the chat interface. When a user pastes a substantial amount of text (code, logs, or other text-based content), instead of displaying the entire content directly in the chat window, the system would represent it as an attachment-style element similar to uploaded files.
Key Technical Note
While the interface resembles file attachments, this feature would not upload the pasted content as a file. Instead, the text is appended directly to the prompt, maintaining a cleaner UI without changing how the text is processed by the model.
Implementation Details
This feature would significantly improve the user experience when working with large text blocks. Currently, pasting large content makes the prompt difficult to work with as it fills up the chat window, especially when dealing with multiple blocks of text.
The implementation would:
Visual Design
This first mockup shows what the feature would look like in the normal chat interface. Large pasted text chunks are treated like other uploaded attachments, with a distinct visual indicator showing it's "Pasted from clipboard" rather than an uploaded file. This keeps the chat interface clean and organized.
The second mockup demonstrates what happens when a user clicks on the pasted content element. A modal opens displaying the full text content, making it easy to review the pasted material before sending.
Screen.Recording.2025-04-29.at.2.22.13.PM.mov
A short video demonstration showing the interaction flow when clicking on the pasted content element in the chat interface.
This approach maintains a clean chat interface while still allowing users to work with large blocks of text efficiently. The feature is inspired by similar functionality in other LLM providers but designed specifically to fit LibreChat's existing UI/UX patterns.
Implementation Readiness
We already have developers at our company ready to build this feature and are currently working on prototypes for implementation.
cc: @nhtruong @sbruel @katbuilt
Beta Was this translation helpful? Give feedback.
All reactions