Skip to content

Commit

Permalink
hotfix : 리베이스 하면서 파일 충돌 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed May 13, 2024
1 parent be96dbf commit 159fdae
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
public class GptService {
private final RestTemplate restTemplate;
private final GptScheduleParser gptScheduleParser;
private final S3ImageService s3ImageService;
private final ScheduleService scheduleService;

@Value("${api-key.chat-gpt}")
Expand All @@ -59,8 +58,6 @@ public GptScheduleResponse getResponse(HttpEntity<GptRequest> chatGptRequestHttp
chatGptRequestHttpEntity,
GptResponse.class);

Country country = scheduleService.validateCountry(destination);
String countryImage = country.getImageUrl();
List<GptSchedule> gptSchedules = gptScheduleParser.parseScheduleText(getScheduleText(responseEntity));

return new GptScheduleResponse(gptSchedules);
Expand All @@ -83,7 +80,8 @@ public GptSchedulesResponse askQuestion(GptScheduleRequest questionRequestDTO) {
.build()
);

String countryImage = s3ImageService.get(questionRequestDTO.getDestination());
Country country = scheduleService.validateCountry(questionRequestDTO.getDestination());
String countryImage = country.getImageUrl();
List<GptScheduleResponse> schedules = new ArrayList<>();
for(int i = 0; i < 3; i++) {
schedules.add(
Expand Down

0 comments on commit 159fdae

Please sign in to comment.