TASK:LLM;
This commit is contained in:
@@ -33,7 +33,7 @@ public interface LLMService {
|
||||
|
||||
SseEmitter stream(String prompt, Long projectId, String fileUrl, List<String> imageUrlList, String token, Boolean enableThinking);
|
||||
|
||||
Long chatCreateProject(String prompt, String process);
|
||||
Long chatCreateProject(String prompt, String process, String fileUrl, List<String> imageUrlList);
|
||||
|
||||
List<String> uploadFile(MultipartFile file);
|
||||
|
||||
|
||||
@@ -202,9 +202,9 @@ public class LLMServiceImpl implements LLMService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long chatCreateProject(String prompt, String process) {
|
||||
public Long chatCreateProject(String prompt, String process, String fileUrl, List<String> imageUrlList) {
|
||||
AuthPrincipalVo userHolder = UserContext.getUserHolder();
|
||||
JSONObject jsonObject = pythonService.getProjectParam(prompt);
|
||||
JSONObject jsonObject = pythonService.getProjectParam(prompt, fileUrl, imageUrlList);
|
||||
JSONObject data = jsonObject.getJSONObject("data");
|
||||
Project project = new Project();
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
|
||||
Reference in New Issue
Block a user