TASK:LLM;
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user