Atualizar web/chat.js

This commit is contained in:
2026-08-19 21:46:25 -03:00
parent ee68d87c6a
commit cfc02b5468
+12
View File
@@ -40,6 +40,18 @@ async function pollTask(taskId) {
}, 1500);
}
async function importExcel() {
const file = document.getElementById("excelFile").files[0];
const form = new FormData();
form.append("file", file);
await fetch(`/api/import_excel/${conversationId}`, {
method: "POST",
body: form
});
await loadHistory();
}