Skip to content

Conversation

@GerHerMo
Copy link
Collaborator

@GerHerMo GerHerMo commented Oct 2, 2025

📢 기능 설명

주요 변경사항

  1. ChatbotService.java:90 - 3단계 우선순위 로직

// 1순위: currentStep 명시적 제어

  • currentStep == 0 → 질문형 추천
  • currentStep 1~4 → 단계별 추천
  • 그 외 → 에러 응답

// 2순위: 키워드 감지 (레거시)

  • "단계별 추천" 키워드 감지 시 자동으로 currentStep=1 설정

// 3순위: 기본 일반 대화

  1. 새로운 메서드
  • ChatbotService.java:437 - generateAIResponseWithContext() - 질문형 추천 전용
  • ChatbotService.java:455 - createErrorResponse() - 에러 응답 생성
  1. 로깅 전략
  • [EXPLICIT] - currentStep 명시적 사용
  • [LEGACY] - 키워드 기반 감지 (deprecated)
  • [DEFAULT] - 일반 대화 모드
  1. Deprecated 처리
  • ChatRequestDto.java:22 - isStepRecommendation 필드
  • ChatbotService.java:427 - isStepRecommendationTrigger() 메서드

연결된 issue

연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #227



🩷 Approve 하기 전 확인해주세요!


✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?
  • Approve 하기 전 확인 사항 체크했는가?

@GerHerMo GerHerMo self-assigned this Oct 2, 2025
@GerHerMo GerHerMo added the fix 버그 수정 label Oct 2, 2025
@GerHerMo GerHerMo merged commit 3a23325 into dev Oct 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] chatbot 도메인 currentStep 관련 문제 해결

3 participants