Conversation
Closed
bf67aa4 to
d1748ba
Compare
📊 코드 커버리지 리포트
|
d1748ba to
ba6308a
Compare
Goder-0
reviewed
Dec 30, 2025
src/main/java/com/sofa/linkiving/domain/chat/ai/RealAiTitleClient.java
Outdated
Show resolved
Hide resolved
src/main/java/com/sofa/linkiving/domain/chat/ai/RealAiTitleClient.java
Outdated
Show resolved
Hide resolved
Contributor
|
해당 부분을 포함하여 현재 각 Feign Client의 method명이 generateSummary로 되어 있는데, 링크 요약 생성 기능과 역할이 유사한 이름이라 혼동 가능성이 있다고 생각합니다. 혼동을 줄이기 위해 명칭을 더 구체적으로 변경해보는 건 어떨까요? |
Contributor
Author
해당 부분은 작업 중에 요약 생성 부분과 혼동하여 메소드명을 잘못 작성한 것 같습니다. |
Contributor
|
리베이스 부탁드립니다. |
49e16d6 to
8bd4dee
Compare
Contributor
Author
진행했습니다. |
a6d1b2a to
bb7c9c9
Compare
bb7c9c9 to
865a93c
Compare
Goder-0
approved these changes
Jan 14, 2026
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.
관련 이슈
PR 설명
채팅방 생성 시 사용자의 첫 메시지를 분석하여 제목을 추천해주는 AI 서버를 연동함.
기존 테스트용
MockAiTitleClient를 대체하여 OpenFeign을 활용한 실제 통신 로직을 구현했으며, 외부 서버 장애 시 기본 제목을 반환하는 예외 처리 로직을 적용함.작업 내용
1. Feign Client 설정 및 구현
LinkivingApplication):@EnableFeignClients어노테이션을 추가하여 Feign Client 기능을 활성화함.FeignAiTitleClient):POST /webhook/title-generate엔드포인트를 호출하는 클라이언트를 정의함.List<TitleGenerateRes>로 설정함.2. 비즈니스 로직 구현 (
RealAiTitleClient)@Profile("!test")를 적용하여 실제 운영/개발 환경에서만 동작하도록 설정함 (테스트 환경은MockAiTitleClient유지).get(0))를 추출하여 제목으로 사용함.log.error를 남긴 후 기본 제목("새로운 채팅방")을 반환하도록 예외 처리를 구현함.3. DTO 정의
TitleGenerateReq):firstMessage필드 정의.TitleGenerateRes):title필드 정의.