Merged
Conversation
3 tasks
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.
📌 Summary
✨ Description
상품 검색 서비스 연결 완료:
ProductService클래스는 이제 여러 키워드를 받아 DB에서 관련 상품을 검색하는 기능을 완성했습니다.searchByKeywords메소드가 주어진 키워드 리스트에 맞는 상품을 반환하며,saveItems메소드는 상품 정보를 DB에 저장하는 기능을 제공합니다. 기존 상품 ID가 존재하는 경우 중복 저장을 방지하는 로직이 추가되어 상품 데이터의 정확성을 높였습니다.GPT API 연동 및 선물 추천 시스템 완성:
GptController클래스에서 GPT API와의 연동이 완료되어, 카카오톡 대화 파일을 기반으로 선물 추천 시스템을 완성했습니다. 사용자가 업로드한 카카오톡 대화 내용을 분석하여 성별, 관계, 테마와 같은 정보를 바탕으로 적합한 선물 카테고리를 추천합니다. 추천된 카테고리는 DB에서 해당하는 상품들을 검색하는 데 사용되며, 최종적으로 프론트엔드에 전달됩니다.카카오톡 대화 파일 전처리 및 카테고리 추출 완료:
카카오톡 대화 파일을 전처리하고, 그 내용을 GPT API를 통해 분석하여 적합한 카테고리를 추출하는 로직이 완성되었습니다. 파일에서 불필요한 문자와 시간 정보를 제거하고, 성별, 관계, 테마에 맞는 키워드를 추출하여 선물 추천에 적합한 데이터를 생성합니다.
OpenAI API 연동 설정 완료:
GptConfig클래스에서는 OpenAI API와의 연동이 설정되었습니다.RestTemplate을 활용하여 API 요청을 보내며, 요청 시Authorization헤더를 통해 인증이 이루어집니다. 또한, API URL 및 모델은application.yml파일에서 동적으로 가져오며, 이를 통해 GPT API와의 연결을 효율적으로 처리합니다.🗒️ Review Point