FIX: Specify type for Rag upload (#895)

Specifying `type` when using `UppyUpload` will be required as of https://github.com/discourse/discourse/pull/29600.
This commit is contained in:
Osama Sayegh 2024-11-05 22:10:54 +03:00 committed by GitHub
parent ab4678275d
commit da7c97d294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export default class RagUploader extends Component {
uppyUpload = new UppyUpload(getOwner(this), {
id: "discourse-ai-rag-uploader",
maxFiles: 20,
type: "discourse_ai_rag_upload",
uploadUrl:
"/admin/plugins/discourse-ai/rag-document-fragments/files/upload",
preventDirectS3Uploads: true,