TASK:LLM;
This commit is contained in:
@@ -62,14 +62,14 @@ public class LLMController {
|
||||
}
|
||||
|
||||
@ApiOperation(value = "对话创建项目")
|
||||
@GetMapping(value = "/chatCreateProject")
|
||||
@PostMapping(value = "/chatCreateProject")
|
||||
public Response<Long> chatCreateProject(@RequestParam String prompt) {
|
||||
return Response.success(llmService.chatCreateProject(prompt));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "上传文件")
|
||||
@GetMapping(value = "/uploadFile")
|
||||
public Response<List<String>> uploadFile(@RequestParam MultipartFile file) {
|
||||
public Response<List<String>> uploadFile(@RequestParam("file") MultipartFile file) {
|
||||
return Response.success(llmService.uploadFile(file));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import com.ai.da.model.vo.PageQueryBaseVo;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ChatHistoryDTO extends PageQueryBaseVo {
|
||||
private Long projectId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user