试验性的记忆功能 (#812)

* feat: memory basic

* fix: chaite ver

* fix: update prompt

* fix: memory cursor and extract prompt

* fix: memory retrieval bug

* fix: memory retrieval bug

* fix: one more attempt by codex

* fix: messages prompt error

* fix: one more time by codex

* fix: metrics by codex

* fix: memory forward

* fix: memory show update time
This commit is contained in:
ikechan8370 2025-11-07 16:40:26 +08:00 committed by GitHub
parent db386ccaf2
commit 8bfce5402f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 4382 additions and 103 deletions

View file

@ -75,6 +75,9 @@ export class TRSSGroupContextCollector extends GroupContextCollector {
* @returns {Promise<Array<*>>}
*/
async collect (bot = Bot, groupId, start = 0, length = 20) {
if (!bot) {
return []
}
const group = bot.pickGroup(groupId)
let chats = await group.getChatHistory(start, length)
try {