mirror of
https://github.com/coalaura/whiskr.git
synced 2025-12-02 20:22:52 +00:00
show star in title while generating
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
scrollResize = false,
|
||||
isUploading = false,
|
||||
isDumping = false,
|
||||
isGenerating = false,
|
||||
totalCost = 0;
|
||||
|
||||
function updateTotalCost() {
|
||||
@@ -89,7 +90,7 @@
|
||||
|
||||
$titleText.textContent = title;
|
||||
|
||||
document.title = `whiskr${chatTitle ? ` - ${chatTitle}` : ""}`;
|
||||
document.title = `whiskr${isGenerating ? "*" : ""}${chatTitle ? ` - ${chatTitle}` : ""}`;
|
||||
|
||||
storeValue("title", chatTitle);
|
||||
}
|
||||
@@ -1243,6 +1244,10 @@
|
||||
setFollowTail(true);
|
||||
}
|
||||
|
||||
isGenerating = true;
|
||||
|
||||
updateTitle();
|
||||
|
||||
const body = buildRequest(noPush);
|
||||
|
||||
const controller = new AbortController();
|
||||
@@ -1314,6 +1319,10 @@
|
||||
|
||||
stopTimeout?.();
|
||||
|
||||
isGenerating = false;
|
||||
|
||||
updateTitle();
|
||||
|
||||
finish();
|
||||
|
||||
$chat.classList.remove("completing");
|
||||
|
||||
Reference in New Issue
Block a user