Skip to content

Commit

Permalink
feat: bubble_id stream 전송
Browse files Browse the repository at this point in the history
  • Loading branch information
kalsteve committed Jul 18, 2024
1 parent 651d4c6 commit 93c6c4d
Showing 1 changed file with 2 additions and 0 deletions.
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 93c6c4d

Please sign in to comment.