ai-chatbot
ai-chatbot copied to clipboard
feat: Add clipboard image paste support
This pull request introduces a new feature to handle image pasting in the PureMultimodalInput component. The main changes include adding a paste event listener and handling the image upload process.
Key changes:
-
components/multimodal-input.tsx:- Added
handlePastefunction to process pasted images, upload them, and update the attachments state. - Added a
useEffecthook to attach and detach the paste event listener to the textarea element.
- Added
Supports:
- Ctrl+v
- Right click paste
@teeverc is attempting to deploy a commit to the Vercel Team on Vercel.
A member of the Team first needs to authorize it.
Nice addition @teeverc - thanks!