Skip to content

Commit

Permalink
Merge pull request #28 from NewMillenniumWorkout/dev/chat
Browse files Browse the repository at this point in the history
ai api 최최종
  • Loading branch information
LUCETE012 authored Dec 2, 2024
2 parents 7c93e32 + 51332f1 commit d15a884
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public ResponseEntity<StatusResponseDto> sendInitMessage(@Parameter(hidden = tru
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity<Map<String, Object>> entity = new HttpEntity<>(aiRequest, headers);

String aiChatUrl = "http://localhost:8000/ai/diary/";
String aiChatUrl = "http://server-fastapi:8000/ai/diary/";

ResponseEntity<DiaryAiResponseDTO> aiResponse = restTemplate.postForEntity(aiChatUrl, entity, DiaryAiResponseDTO.class);

Expand Down Expand Up @@ -195,7 +195,7 @@ public ResponseEntity<StatusResponseDto> remakeParagraph(@Parameter(hidden = tru
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity<Map<String, Object>> entity = new HttpEntity<>(aiRequest, headers);

String aiChatUrl = "http://localhost:8000/ai/remake/";
String aiChatUrl = "http://server-fastapi:8000/ai/remake/";

log.info(String.valueOf(restTemplate.postForEntity(aiChatUrl, entity, Map.class)));
ResponseEntity<Map> aiResponse = restTemplate.postForEntity(aiChatUrl, entity, Map.class);
Expand Down

0 comments on commit d15a884

Please sign in to comment.