diff --git a/src/modules/rag-chat/rag-chat.controller.ts b/src/modules/rag-chat/rag-chat.controller.ts index 6a2f1ee..0c07e43 100644 --- a/src/modules/rag-chat/rag-chat.controller.ts +++ b/src/modules/rag-chat/rag-chat.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Post, Delete, Body, Param, Res } from '@nestjs/common'; +import { Controller, Get, Post, Delete, Body, Param, Res, Query } from '@nestjs/common'; import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger'; import type { Response } from 'express'; import { RagChatService } from './rag-chat.service'; @@ -19,7 +19,7 @@ export class RagChatController { @Get('sessions') @ApiOperation({ summary: '对话列表' }) - async listSessions(@CurrentUser() user: UserPayload, @Body('knowledgeBaseId') kbId?: string) { + async listSessions(@CurrentUser() user: UserPayload, @Query('knowledgeBaseId') kbId?: string) { return this.svc.listSessions(String(user.id), kbId); }