Skip to content

Commit

Permalink
fix: Add calculate tokens after clean chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Palm1r committed Jan 24, 2025
1 parent f85c162 commit 97163cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChatView/ChatRootView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ChatRootView : public QQuickItem
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;
Expand Down
1 change: 1 addition & 0 deletions ChatView/qml/RootItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ ChatRootView {
function clearChat() {
root.chatModel.clear()
root.clearAttachmentFiles()
root.updateInputTokensCount()
}

function scrollToBottom() {
Expand Down

0 comments on commit 97163cf

Please sign in to comment.