Skip to content

Commit 118a23a

Browse files
committed
refactor: serveral fix text
1 parent d3ea62a commit 118a23a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/com/back/domain/chatbot/entity/ChatConversation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

src/main/java/com/back/domain/chatbot/service/ChatbotService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)