Atualizar web/chat.js
This commit is contained in:
+18
@@ -15,6 +15,24 @@ function toggleTheme() {
|
||||
document.body.classList.toggle("dark");
|
||||
}
|
||||
|
||||
function exportTXT() {
|
||||
window.location = `/api/export/txt/${conversationId}/conversa.txt`
|
||||
}
|
||||
function exportMD() {
|
||||
window.location = `/api/export/md/${conversationId}/conversa.md`
|
||||
}
|
||||
function exportHTML() {
|
||||
window.location = `/api/export/html/${conversationId}/conversa.html`
|
||||
}
|
||||
function exportDOCX() {
|
||||
window.location = `/api/export/docx/${conversationId}/conversa.docx`
|
||||
}
|
||||
function exportODT() {
|
||||
window.location = `/api/export/odt/${conversationId}/conversa.odt`
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function sendAsync() {
|
||||
const r = await fetch("/api/queue/generate", {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user