We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d057493 commit 20aaeffCopy full SHA for 20aaeff
src/eca/features/chat.clj
@@ -1440,7 +1440,10 @@
1440
"Remove messages from chat in db until content-id matches.
1441
Then notify to clear chat and then the kept messages."
1442
[{:keys [chat-id content-id include]} db* messenger]
1443
- (let [include (set include)
+ (let [include (if (seq include)
1444
+ (set include)
1445
+ ;; backwards compatibility
1446
+ ["messages" "tools"])
1447
all-messages (get-in @db* [:chats chat-id :messages])
1448
tool-calls (get-in @db* [:chats chat-id :tool-calls])
1449
new-messages (when (contains? include "messages")
0 commit comments