Skip to content

Commit

Permalink
Merge pull request #25 from NewMillenniumWorkout/dev/chat
Browse files Browse the repository at this point in the history
Update CORS
  • Loading branch information
LUCETE012 authored Dec 2, 2024
2 parents ffb3cba + 5ebf407 commit 3d0a561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public ResponseEntity<StatusResponseDto> submitMessage(@Parameter(hidden = true)
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity<Map<String, Object>> entity = new HttpEntity<>(aiRequest, headers);

String aiChatUrl = "localhost:2518/ai/chat/";
String aiChatUrl = "http://localhost:2518/ai/chat/";

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

Expand Down
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 = "localhost:2518/ai/diary/";
String aiChatUrl = "http://localhost:2518/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 = "localhost:2518/ai/remake/";
String aiChatUrl = "http://localhost:2518/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 3d0a561

Please sign in to comment.