Conversation
- 컨트롤러는 테스트용, 비활성화해놓음
- 여행지 출처 (공공데이터 or 카카오 여행지 검색)
Spring AI 1.0.0-M6 & gpt-3.5-turbo 사용
플랜 정보의 인원 수, 시작 및 종료 날짜, 테마를 기반으로 `RecommendService`를 이용하여 여행지 추천. 추천받은 여행지에 대한 정보를 카카오맵 API를 통해 받아온 뒤, 여행지 DB에 없을 경우 저장. 이후 프론트엔드에 반환.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new recommendation feature by integrating OpenAI chat and Kakao Place Search services to generate travel recommendations and retrieve attraction information.
- Added tests for RecommendationService.
- Integrated OpenAI and Kakao Place Search configuration and API calls.
- Enhanced PlanService and PlanController with new endpoints for recommendations and place searches.
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/test/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationServiceTest.java | Added a basic test for the recommendation service without assertions |
| src/main/resources/application.yml | Added AI configuration for OpenAI chat |
| src/main/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationService.java | Introduced recommendation feature using ChatClient and Prompt templates |
| src/main/java/com/ssafy/trabuddy/domain/plan/service/PlanService.java | Extended service to retrieve attractions based on recommendations |
| src/main/java/com/ssafy/trabuddy/domain/plan/controller/PlanController.java | New endpoints for recommendation and place search |
| src/main/java/com/ssafy/trabuddy/domain/kakaoPlaceSearch/* | Added service, controller, DTOs, and model for Kakao Place Search functionality |
| src/main/java/com/ssafy/trabuddy/domain/attraction/* | Modified attraction repository, entity, mapper, and response to support source information |
| src/main/java/com/ssafy/trabuddy/common/config/AiConfig.java | Added configuration to build a ChatClient bean |
Comments suppressed due to low confidence (1)
src/test/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationServiceTest.java:18
- The test case only logs the recommendation output without asserting any expected behavior. Consider adding assertions to validate the recommendation results.
void recommendTest() throws Exception {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Number
Summary
Description
어떤 변경 사항이 있나요?