feat: chat + optmz control panel

This commit is contained in:
thanhnv
2026-07-10 16:26:30 +09:00
parent d882a9dc23
commit 7cea023dce
28 changed files with 1702 additions and 402 deletions
@@ -27,6 +27,15 @@ export class ChatController {
return ok(this.svc.verifyAudit());
}
@Get('history')
history(
@Headers() headers: Record<string, string | string[] | undefined>,
@Query('chatId') chatId?: string,
@Query('limit') limit?: string,
) {
return ok(this.svc.history(actorFromHeaders(headers), chatId || '', Number(limit ?? 50)));
}
@Get('replay')
replay(@Query('chatId') chatId?: string, @Query('turnId') turnId?: string, @Query('tenant') tenant?: string) {
return ok(this.svc.replay(chatId || '', turnId || '', tenant || ''));