TASK:LLM;

This commit is contained in:
shahaibo
2025-05-19 10:47:02 +08:00
parent a67b487dc0
commit 738144ad22
3 changed files with 20 additions and 18 deletions

View File

@@ -57,14 +57,15 @@ public class LLMController {
public SseEmitter streamPrompt(@RequestParam String prompt,
@RequestParam Long projectId,
@RequestParam(required = false) String fileUrl,
@RequestParam(required = false) List<String> imageUrlList,
@RequestParam String token) {
return llmService.stream(prompt, projectId, fileUrl, token);
return llmService.stream(prompt, projectId, fileUrl, imageUrlList, token);
}
@ApiOperation(value = "对话创建项目")
@GetMapping(value = "/chatCreateProject")
public Response<Long> chatCreateProject(@RequestParam String prompt) {
return Response.success(llmService.chatCreateProject(prompt));
public Response<Long> chatCreateProject(@RequestParam String prompt, @RequestParam String process) {
return Response.success(llmService.chatCreateProject(prompt, process));
}
@ApiOperation(value = "上传文件")