Move this logic to QML.

This commit is contained in:
Adam Treat
2023-10-29 18:34:42 -04:00
parent f5f22fdbd0
commit f529d55380
3 changed files with 14 additions and 13 deletions

View File

@@ -815,8 +815,17 @@ Window {
}
Label {
anchors.verticalCenter: parent.verticalCenter
text: currentChat.responseState + "..."
color: theme.textAccent
text: {
switch (currentChat.responseState) {
case Chat.ResponseStopped: return "response stopped ...";
case Chat.LocalDocsRetrieval: return "retrieving " + currentChat.collectionList.join(", ") + " ...";
case Chat.LocalDocsProcessing: return "processing " + currentChat.collectionList.join(", ") + " ...";
case Chat.PromptProcessing: return "processing ..."
case Chat.ResponseGeneration: return "generating response ...";
default: return ""; // handle unexpected values
}
}
}
}
}