mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
feat(chat): add AgentSessionType enum and filter chatbot history sessions
This commit is contained in:
@@ -278,6 +278,7 @@ export class ChatService {
|
||||
userId: user.id,
|
||||
cwd: process.cwd(),
|
||||
assetId: asset.id,
|
||||
type: 'chat',
|
||||
},
|
||||
})
|
||||
activeSessionId = newSession.id
|
||||
@@ -319,6 +320,7 @@ export class ChatService {
|
||||
): Promise<PaginatedData<ChatSessionInfo[]>> {
|
||||
const where: Prisma.AgentSessionWhereInput = {
|
||||
userId,
|
||||
type: 'chat',
|
||||
}
|
||||
|
||||
return await paginateQuery(
|
||||
|
||||
Reference in New Issue
Block a user