mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Support attaching jupyter/ipython notebooks from the web app to chat
This commit is contained in:
@@ -288,7 +288,11 @@ export async function packageFilesForUpload(files: FileList): Promise<FormData>
|
||||
fileType = "text/org";
|
||||
} else if (fileExtension === "md") {
|
||||
fileType = "text/markdown";
|
||||
} else if (fileExtension === "txt" || fileExtension === "tsx") {
|
||||
} else if (
|
||||
fileExtension === "txt" ||
|
||||
fileExtension === "tsx" ||
|
||||
fileExtension === "ipynb"
|
||||
) {
|
||||
fileType = "text/plain";
|
||||
} else if (fileExtension === "html") {
|
||||
fileType = "text/html";
|
||||
|
||||
Reference in New Issue
Block a user