fix: Add calculate tokens after clean chat

This commit is contained in:
Petr Mironychev 2025-01-24 01:08:30 +01:00
parent f85c162692
commit 97163cf6c9
2 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public:
Q_INVOKABLE void calculateMessageTokensCount(const QString &message);
Q_INVOKABLE void setIsSyncOpenFiles(bool state);
void updateInputTokensCount();
Q_INVOKABLE void updateInputTokensCount();
int inputTokensCount() const;
bool isSyncOpenFiles() const;

View File

@ -203,6 +203,7 @@ ChatRootView {
function clearChat() {
root.chatModel.clear()
root.clearAttachmentFiles()
root.updateInputTokensCount()
}
function scrollToBottom() {