Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/#8] 음성 채팅방 구분 및 채팅 요약 기능 구현 #12

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

daeun084
Copy link
Collaborator

#️⃣ 관련 이슈

💡 작업내용

  • username으로 user 구분
    • 이전에 회의한 내용을 기반으로 spring security 적용 대신 username을 이용해 user를 식별합니다.
  • user entity email_period field 추가
    • 유저가 설정한 이메일 전송 주기를 저장하는 필드 추가했습니다.
    • EmailPeriod enum 생성했고, user 생성 시 3일을 기본값으로 설정했습니다.
  • 음성 채팅방 구분
    • 가장 최근 생성된 채팅방(c1)을 조회한 후, 현재로부터 유저가 설정한 email_period 기간 내에 생성되었다면 해당 채팅방을 사용합니다.
    • 그렇지 않다면 새로운 채팅방(c2)을 생성해 사용합니다.
      • c1의 내용을 요약해 c2의 summary field에 저장하고 c1을 삭제합니다.
  • 채팅 요약 기능
    • chat-summary-prompt.txt 파일을 추가해, cicd 및 env 파일 수정 필요합니다.

📸 스크린샷

📝 기타

  • 한 패널 내에서 외부 API 호출 + Entity 저장 및 삭제 작업이 여러 개가 이루어져 트랜잭션 분리 기준을 어떻게 할지 고민입니다 ..

@daeun084 daeun084 requested a review from Oilwoo March 12, 2025 06:48
@daeun084 daeun084 self-assigned this Mar 12, 2025
@daeun084 daeun084 linked an issue Mar 12, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 음성 대화 시 대화방 입장 및 종료 구분
1 participant