diff --git a/src/main/java/com/m9d/sroom/course/service/CourseService.java b/src/main/java/com/m9d/sroom/course/service/CourseService.java index 61ed1824..cc456cea 100644 --- a/src/main/java/com/m9d/sroom/course/service/CourseService.java +++ b/src/main/java/com/m9d/sroom/course/service/CourseService.java @@ -132,7 +132,7 @@ public void requestToFastApi(Video video) { log.info("request to AI server successfully. videoCode = {}, title = {}", video.getVideoCode(), video.getTitle()); if (video.getMaterialStatus() == null || video.getMaterialStatus() == MaterialStatus.NO_REQUEST.getValue()) { - gptService.requestToFastApi(video.getVideoCode()); + gptService.requestToFastApi(video.getVideoCode(), video.getTitle()); video.setMaterialStatus(MaterialStatus.CREATING.getValue()); videoRepository.updateById(video.getVideoId(), video); } diff --git a/src/main/java/com/m9d/sroom/gpt/service/GPTService.java b/src/main/java/com/m9d/sroom/gpt/service/GPTService.java index c1643648..ca3076e0 100644 --- a/src/main/java/com/m9d/sroom/gpt/service/GPTService.java +++ b/src/main/java/com/m9d/sroom/gpt/service/GPTService.java @@ -97,8 +97,9 @@ public void saveResultEach(MaterialResultsVo materialVo) { } } - public void requestToFastApi(String videoCode) { - String requestUrl = gptRequestUrl.concat("/?").concat("video_id=").concat(videoCode); + public void requestToFastApi(String videoCode, String videoTitle) { + String requestUrl = gptRequestUrl.concat("/?").concat("video_id=").concat(videoCode) + .concat("&video_title=").concat(videoTitle); try { HttpStatus status = webClient.get()