1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 00:29:54 +00:00

include exa cost

This commit is contained in:
Laura
2025-08-28 14:46:28 +02:00
parent b331920634
commit 98c6976dfa
4 changed files with 17 additions and 15 deletions

View File

@@ -407,16 +407,6 @@
#updateToolHeight() {
const result = this.#_tool.querySelector(".result");
try {
const clone = result.cloneNode();
setTimeout(() => {
console.log(clone, clone.getBoundingClientRect(), clone.scrollHeight, clone.height);
}, 0);
} catch(err) {
console.warn(err);
}
this.#_tool.style.setProperty("--height", `${result.scrollHeight}px`);
}
@@ -1047,6 +1037,8 @@
message.setTool(chunk.text);
if (chunk.text.done) {
totalCost += chunk.text.cost || 0;
finish();
}