mirror of
https://github.com/run-llama/chat-ui.git
synced 2026-07-21 19:35:21 -04:00
Allow uploading files without requiring an upload endpoint #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thucpn on GitHub (Aug 12, 2025).
Originally assigned to: @thucpn on GitHub.
Description:
In ChatUI, the upload button currently only shown when an upload endpoint is defined. Additionally, the
useFilecontract is too specific to the/api/uploadendpoint ofLlamaIndexServer TS.Expected behavior:
llama-deploywithout going through a dedicated upload API.useFileshould be updated to follow theFilePartcontract. In simple terms, when a user uploads a file, it should be represented as aFilePartwithinmessage.parts.FilePartinto aFileDetailContentPartin aLlamaIndex ChatMessage.