File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Improve ` /compact ` UI in chat after running, cleaning chat and showing the new summary.
56- Better config values dynamic string parse:
67 - Support ` ${classapath:path/to/eca/classpath/file} ` in dynamic string parse.
78 - Support ` ${netrc:api.foo.com} ` in dynamic string parse to parse keys. #200
Original file line number Diff line number Diff line change 220220 (swap! db* assoc-in [:chats chat-id :total-output-tokens ] nil )
221221 (swap! db* assoc-in [:chats chat-id :total-input-cache-creation-tokens ] nil )
222222 (swap! db* assoc-in [:chats chat-id :total-input-cache-read-tokens ] nil )
223+ (messenger/chat-cleared messenger {:chat-id chat-id :messages true })
224+ (messenger/chat-content-received
225+ messenger
226+ {:chat-id chat-id
227+ :role :system
228+ :content {:type :text
229+ :text " Compacted chat to:\n\n " }})
230+ (messenger/chat-content-received
231+ messenger
232+ {:chat-id chat-id
233+ :role :assistant
234+ :content {:type :text
235+ :text (get-in @db* [:chats chat-id :last-summary ])}})
223236 (when-let [usage (shared/usage-msg->usage {:input-tokens 0 :output-tokens 0 } full-model {:chat-id chat-id :db* db*})]
224237 (messenger/chat-content-received
225238 messenger
You can’t perform that action at this time.
0 commit comments