feat: add base64 document attachment support to API chat endpoints (#4672)

* feat: add base64 document attachment support to API chat endpoints

* remove parsed documents from api chat process
linting for simplicity
fix logic issues with flow of data through the pipeline
documentiation

* change var scope

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
Neha Prasad
2025-11-25 05:18:44 +05:30
committed by GitHub
parent 5716ac5ed5
commit 340709504c
5 changed files with 139 additions and 5 deletions

View File

@@ -493,6 +493,11 @@ function apiWorkspaceThreadEndpoints(app) {
name: "image.png",
mime: "image/png",
contentString: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
},
{
name: "this is a document.pdf",
mime: "application/anythingllm-document",
contentString: "data:application/pdf;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}
],
reset: false