- Notifications
You must be signed in to change notification settings - Fork1.5k
Commit15a1a82
authored
Plus UI dropdown (#1971)
* Replace file upload button with bits-ui DropdownMenuReplaces the previous file upload button and tooltip with a DropdownMenu from bits-ui, providing a more modern UI for file/image uploads in ChatInput.svelte. Adds new dependencies to package.json for bits-ui and related packages.* Add URL file fetch modal to chat inputIntroduces UrlFetchModal.svelte for fetching files from HTTPS URLs and adds it to ChatInput.svelte. Updates file upload dropdown to support uploading text files from device or URL, and refines mime type handling in ChatWindow.svelte to always allow common text-like files and images for multimodal models.* Copy shared files when creating conversation from shareAdds logic to duplicate files from a shared conversation to a new conversation when created from a share. Files are renamed and metadata is updated to associate them with the new conversation.* Centralize MIME type allowlists and update usageIntroduces src/lib/constants/mime.ts to centralize text and image MIME allowlists. Updates components and server endpoint logic to use these constants for file type filtering, improving consistency and maintainability. Also fixes a minor label and MIME string typo.* Improve MIME type handling for uploaded filesRefactored plain text MIME type detection to use a configurable allowlist and a new matching function. Updated modal width for better display of images and text files.* format1 parent5f465e2 commit15a1a82
File tree
9 files changed
+545
-70
lines changed- src/lib
- components/chat
- constants
- server
- endpoints/openai
9 files changed
+545
-70
lines changedSome generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
0 commit comments
Comments
(0)