TASK:LLM;

This commit is contained in:
shahaibo
2025-05-19 10:00:19 +08:00
parent 59ffa38ff7
commit 6aa1a3d167
5 changed files with 39 additions and 9 deletions

View File

@@ -74,8 +74,8 @@ public class LLMController {
}
@ApiOperation(value = "获取历史聊天记录")
@GetMapping(value = "/getChatHistory")
public Response<List<ChatMessage>> getChatHistory(@RequestParam Long projectId) {
return Response.success(llmService.getChatHistory(projectId));
@PostMapping(value = "/getChatHistory")
public Response<PageBaseResponse<ChatMessage>> getChatHistory(@RequestBody ChatHistoryDTO chatHistoryDTO) {
return Response.success(llmService.getChatHistory(chatHistoryDTO));
}
}