Skip to content

Commit

Permalink
Merge pull request #83 from 2024-SummerBootcamp-Team/feat/#35
Browse files Browse the repository at this point in the history
[Feat/#35] 채팅 기능 추가 및 trimmer 일시 주석화
  • Loading branch information
kalsteve authored Jul 18, 2024
2 parents c4ae4b3 + 2adc1da commit 6b8bdfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/config/langChain/langChainSetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def get_session_history(session_id):

# 메시지 히스토리를 포함하여 넣어주는 러너블 생성
runnable_with_history = RunnableWithMessageHistory(
chain_with_trimming,
# chain_with_trimming,
prompt | llm,
get_session_history,
input_messages_key="input",
history_messages_key="chat_history",
Expand Down
2 changes: 2 additions & 0 deletions app/services/bubble_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ async def create_bubble(chat_id: int, content: str, db: Session):

# Redis에 오디오 데이터 저장
redis_client.setex(str(db_bubble_ai.id), timedelta(seconds=600), audio_data_bytes) # 생성과 동시에 10초뒤에 사라짐

yield f"data: {json.dumps({'bubble_id': str(db_bubble_ai.id)})}\n\n"

0 comments on commit 6b8bdfd

Please sign in to comment.