Skip to content

Commit 88a651d

Browse files
authored
Merge pull request #82 from studio-recoding/feat-ai-oneline
[⚠️!HOTFIX] 채팅에서 memberId 안 넘겨주던 문제 해결
2 parents 5e54fe7 + 68aa26e commit 88a651d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/Ness/Backend/domain/chat/ChatService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public GetChatListDto postNewUserChat(Long memberId, PostUserChatDto postUserCha
9595
}
9696

9797
/* AI에 채팅 전송하는 로직 */
98-
public PostFastApiAiChatDto postNewAiChat(Long id, String text, ChatType chatType, PersonaType personaType){
98+
public PostFastApiAiChatDto postNewAiChat(Long memberId, String text, ChatType chatType, PersonaType personaType){
9999
String persona = "default";
100100
if (personaType == PersonaType.HARDNESS){
101101
persona = "hard";
@@ -109,6 +109,7 @@ public PostFastApiAiChatDto postNewAiChat(Long id, String text, ChatType chatTyp
109109
.persona(persona)
110110
.chatType(chatType) // 유저가 키보드로 친 채팅인지, 아니면 STT를 썼는지 구분
111111
.message(text)
112+
.member_id(memberId)
112113
.build();
113114

114115
//Fast API에 전송하기

src/main/java/Ness/Backend/domain/chat/dto/request/PostFastApiUserChatDto.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
@Builder
1515
/* AI에게 보내는 유저 채팅 */
1616
public class PostFastApiUserChatDto {
17+
@JsonProperty("member_id")
18+
private Long member_id;
19+
1720
@JsonProperty("prompt")
1821
private String message;
1922

0 commit comments

Comments
 (0)