Skip to content

Commit c65eb94

Browse files
committed
Reduce noise in auto-compaction, not mentioning the summary.
Fixes #280
1 parent b6ba6dd commit c65eb94

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fix `/resume` duplicating chats. #278
6+
- Reduce noise in auto-compaction, not mentioning the summary. #280
67

78
## 0.96.0
89

src/eca/features/chat_compact.clj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,9 @@
2727
:role :system
2828
:content {:type :text
2929
:text (if auto-compact?
30-
"Auto-compacted chat to:\n\n"
31-
"Compacted chat to:\n\n")}})
32-
(messenger/chat-content-received
33-
messenger
34-
{:chat-id chat-id
35-
:role :assistant
36-
:content {:type :text
37-
:text (get-in @db* [:chats chat-id :last-summary])}})
38-
(when-let [usage (shared/usage-msg->usage {:input-tokens 0 :output-tokens 0} full-model {:chat-id chat-id :db* db*})]
30+
"Auto-compacted chat"
31+
"Compacted chat")}})
32+
(when-let [usage (shared/usage-sumary chat-id full-model @db*)]
3933
(messenger/chat-content-received
4034
messenger
4135
{:chat-id chat-id

0 commit comments

Comments
 (0)