1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 01:09:54 +00:00
This commit is contained in:
Laura
2025-08-18 04:46:59 +02:00
parent b28c1987b0
commit 837c32de28

View File

@@ -503,7 +503,10 @@
}; };
if (this.#files.length) { if (this.#files.length) {
data.files = this.#files; data.files = this.#files.map(file => ({
name: file.name,
content: file.content,
}));
} }
if (this.#tool) { if (this.#tool) {
@@ -999,7 +1002,7 @@
models[model.id] = model; models[model.id] = model;
modelList.push(model); modelList.push(model);
}) });
dropdown($model, 4); dropdown($model, 4);
@@ -1009,7 +1012,7 @@
el.textContent = prompt.name; el.textContent = prompt.name;
promptList.push(prompt); promptList.push(prompt);
}) });
dropdown($prompt); dropdown($prompt);
@@ -1281,7 +1284,7 @@
} }
pushAttachment(file); pushAttachment(file);
} catch(err) { } catch (err) {
alert(err.message); alert(err.message);
} }
}); });