Skip to content

Commit

Permalink
ai api 최최종
Browse files Browse the repository at this point in the history
  • Loading branch information
LUCETE012 committed Dec 2, 2024
1 parent 2f0217f commit 51332f1
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 51332f1

Please sign in to comment.