mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
refactor(agent): optimize ULID id sorting and exclude __CHAT__ placeholder comments
This commit is contained in:
@@ -28,8 +28,11 @@ export const createReadThreadTool = (): AgentTool<
|
||||
}
|
||||
|
||||
const replies = await prisma.assetComment.findMany({
|
||||
where: { replyToId: rootComment.id },
|
||||
orderBy: { createdAt: 'asc' },
|
||||
where: {
|
||||
replyToId: rootComment.id,
|
||||
message: { not: '__CHAT__' },
|
||||
},
|
||||
orderBy: { id: 'asc' },
|
||||
include: { creator: true },
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user