File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/back/domain/chatbot Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public class ChatConversation {
2121 @ GeneratedValue (strategy = IDENTITY )
2222 private Long id ;
2323
24+ @ Column (nullable = false )
2425 private Long userId ;
2526
2627 @ Column (columnDefinition = "TEXT" , nullable = false )
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public ChatResponseDto sendMessage(ChatRequestDto requestDto) {
108108 // 대화 컨텍스트 생성
109109 String conversationContext = buildConversationContext (recentChats );
110110
111- // ChatClient 빌더 생성
111+ // ChatClient 빌더 생성 - .message 체인 방식 포기
112112 var promptBuilder = chatClient .prompt ()
113113 .system (buildSystemMessage (messageType ) + conversationContext )
114114 .user (buildUserMessage (requestDto .getMessage (), messageType ));
@@ -354,7 +354,8 @@ private ChatResponseDto handleStepRecommendation(ChatRequestDto requestDto) {
354354 switch (currentStep ) {
355355 case 1 :
356356 stepRecommendation = getAlcoholStrengthOptions ();
357- chatResponse = "단계별로 취향을 찾아드릴게요! 🎯\n 원하시는 도수를 선택해주세요! \n " +
357+ chatResponse = "단계별로 취향을 찾아드릴게요! 🎯\n " +
358+ "원하시는 도수를 선택해주세요! \n " +
358359 "잘 모르는 항목은 '전체'로 체크하셔도 괜찮아요." ;
359360 break ;
360361 case 2 :
You can’t perform that action at this time.
0 commit comments