Skip to content

Commit

Permalink
Merge pull request #82 from studio-recoding/feat-ai-oneline
Browse files Browse the repository at this point in the history
[⚠️!HOTFIX] 채팅에서 memberId 안 넘겨주던 문제 해결
  • Loading branch information
JeonHaeseung authored May 24, 2024
2 parents 5e54fe7 + 68aa26e commit 88a651d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/Ness/Backend/domain/chat/ChatService.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public GetChatListDto postNewUserChat(Long memberId, PostUserChatDto postUserCha
}

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

//Fast API에 전송하기
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
@Builder
/* AI에게 보내는 유저 채팅 */
public class PostFastApiUserChatDto {
@JsonProperty("member_id")
private Long member_id;

@JsonProperty("prompt")
private String message;

Expand Down

0 comments on commit 88a651d

Please sign in to comment.