Repository navigation
refactor(agent): 서비스 종료된 Hedra 아바타 연동 코드 제거 - #30
Closed
Lee-Soyeon wants to merge 1 commit into
Closed
Lee-Soyeon wants to merge 1 commit into
Lee-Soyeon wants to merge 1 commit into
Conversation
- hedra extra와 livekit-plugins-hedra 제거(lock은 해당 항목만 변경) - worker.py의 아바타 세션 코드, hedra_settings 인자, 미사용 import 삭제 - README의 HEDRA_* 안내와 Persona의 Hedra 설명 정리 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GubsgBhVkWRQ78nwXm4AaB
Contributor
Author
|
@ywkim 머지 순서 정리 (2026-10-22) 이 PR은 1/11번째 입니다. Hedra 종료로 운영 통화가 "Connecting…"에서 멈추는 원인으로 보여 가장 먼저 머지가 필요합니다. #15가 이미 main에 머지돼서 충돌이 났고, main 기준으로 rebase하겠습니다. 전체 순서: 1 #30 → 2 #29 → 3 #18 → 4 #19 → 5 #20 → 6 #22 → 7 #23 → 8 #24 → 9 #25 → 10 #26 → 11 #27 |
This was referenced Oct 22, 2026
Contributor
Author
|
@ywkim 이 PR을 올린 이유 남깁니다.
|
ywkim
requested changes
Oct 22, 2026
ywkim
left a comment
Contributor
There was a problem hiding this comment.
차단 1건입니다.
- 차단: 이 PR은 #18로 합치고 닫아 주세요. 하나의 논리적 변경은 "Hedra 삭제"가 아니라 "아바타 제공자를 Hedra에서 Simli로 교체"입니다. #15에서 Fish Audio를 지우고 ElevenLabs를 넣은 것과 같은 단위입니다.
- 같은 코드를 지웠다 다시 씁니다. 이 PR이 지우는
worker.py의avatar_id병합 코드를 #18이 다시 넣습니다.Persona.avatar_id설명도 이 PR에서 "currently unused"로 바꾼 뒤 #18에서 다시 "Simli face ID"로 바꿉니다. - 중간 상태에 의미가 없습니다. 이 PR만 머지된 main은 아바타 기능 자체가 없는 상태가 됩니다.
- 먼저 머지해도 운영이 고쳐지지 않습니다.
- 제목이
refactor라 semantic-release가 새 버전을 배포하지 않습니다([tool.semantic_release]conventional parser 기준). - buppy는
fancall = "~0.5.0"(lock 0.5.0)에 고정돼 있고,deploy.yml의deploy-livekit-agentjob이HEDRA_ENABLED=true로 배포합니다. - 운영의 "Connecting…"을 당장 고치려면 buppy agent 배포를
HEDRA_ENABLED=false로 바꾸는 게 빠릅니다. buppy API 서비스의HEDRA_ENABLED는 FlaskHedraLiveAvatarService용이라 별개입니다.
- 제목이
- #18로 합칠 때 같이 정리해 주세요.
- Hedra 이미지 로딩에만 쓰이던
httpx,pillow직접 의존성을 빼 주세요. - 지금 main(
9721f10)과 6개 파일이 충돌하니, ElevenLabs 기준으로 다시 맞춰 주세요.
- Hedra 이미지 로딩에만 쓰이던
- 같은 코드를 지웠다 다시 씁니다. 이 PR이 지우는
Generated by Claude Code
Lee-Soyeon
pushed a commit
that referenced
this pull request
Oct 22, 2026
- Hedra 연동(`hedra_settings` 인자, HEDRA 설정·문서, httpx/pillow 직접 의존성) 제거 (#30 통합) - Simli만 지원: `AvatarSettings.simli_api_key`, 페르소나 `avatar_id`(Simli face ID) - 키·avatar_id가 없거나 시작에 실패하면 음성 통화로 진행 - LiveKit 1.8 업그레이드 없이 `livekit-agents[simli]` (1.2.18) 사용 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tg41wvyVaiUThcGzmHBkj8
Contributor
Author
|
@ywkim 리뷰 요청대로 닫습니다. Hedra 연동 코드 제거는 #18( Generated by Claude Code |
Lee-Soyeon
added a commit
that referenced
this pull request
Oct 23, 2026
## 요약 서비스가 종료된 **Hedra를 지우고 Simli 실시간 립싱크 아바타**로 바꿉니다. 키나 `avatar_id`가 없거나 시작에 실패하면 **음성 통화로 계속**하고, 프론트는 프로필 사진을 보여줍니다. ## 목적 Hedra 실시간 아바타가 종료되어 통화 화면에서 얼굴이 움직이지 않습니다. 입이 움직이지 않으면 "진짜 통화"로 느껴지지 않아, 현재 쓸 수 있는 Simli로 대체합니다. #30(Hedra 삭제)을 이 PR에 합쳤습니다. ## 변경 사항 - 🎭 Simli만 지원합니다. `SIMLI_API_KEY`와 페르소나 `avatar_id`(Simli face ID)가 모두 있을 때만 아바타를 시작합니다. - 🛟 키·`avatar_id`가 없거나 Simli API 호출이 실패하면(`aiohttp.ClientError`·`asyncio.TimeoutError`) 음성 통화로 진행합니다. 그 밖의 설정·코드 오류는 그대로 올립니다. - ⚙️ `SimliSettings`(`api_key`, `env_prefix="SIMLI_"`)를 다른 서비스 설정처럼 `main()`에서 만들어 `create_worker_options()`·`entrypoint()`에 필수 인자로 넘깁니다. - ⏱️ `SimliConfig`의 `max_session_length`·`max_idle_time`을 통화 길이(+작별 여유)로 지정합니다. 기본값(600초·30초)이면 통화 중 Simli가 끊기면서 목소리도 같이 끊길 수 있습니다. - 🧹 Hedra 제거: `hedra_settings` 인자(`entrypoint`, `create_worker_options`), `HEDRA_*` 설정·README·CONTRIBUTING, `hedra`/`images` extras, 직접 의존성 `httpx`·`pillow`. - 📦 `livekit-agents[simli]`(1.2.18)를 쓰므로 LiveKit 1.8 업그레이드는 없습니다. `poetry.lock`은 hedra→simli 항목만 바뀝니다. - 🔁 base를 main(#15 머지 후)으로 다시 맞춰 충돌을 풀었습니다. - 🚫 `persona.py`의 "17-year-old" 삭제는 이 PR에서 뺐습니다(별도 PR). ## 호스트 앱 참고 `create_worker_options()`의 `hedra_settings` 인자가 `simli_settings`(`SimliSettings`)로 바뀌고 `HEDRA_ENABLED`/`HEDRA_API_KEY`는 더 이상 읽지 않습니다. `avatar_id`는 이제 Simli face ID입니다. ## 테스트 - [x] `make -C backend format / lint / type-check / unit-test` 통과 (32개) - [x] Simli 시작·키 없음·`avatar_id` 없음·HTTP 오류/네트워크 오류/타임아웃 시 음성 폴백·예상 밖 오류는 올림·세션 길이 단위 테스트 (`test_avatar.py`) - [ ] 아바타 키 없이 실행하면 음성 통화로 진행되는지 - [ ] Simli face ID가 있는 페르소나로 통화하면 얼굴이 움직이는지 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Tg41wvyVaiUThcGzmHBkj8 --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
서비스가 종료되어 더 이상 동작하지 않는 Hedra 실시간 아바타 연동 코드를 제거합니다. 통화 화면은 영상 트랙이 없으면 프로필 사진을 보여주는 기존 동작 그대로입니다.
목적
Hedra가 실시간 아바타 서비스를 종료해서, 이 연동은 켜도 오류만 납니다. TTS 교체(#15)와 독립된 변경이라 먼저 분리해 정리합니다. #15는 이 PR 위로 base를 옮깁니다.
변경 사항
hedraextra와livekit-plugins-hedra를 제거했습니다.poetry.lock은 이 플러그인 항목과 content-hash만 바뀝니다. (헤더가Poetry 2.4.3으로 찍힌 점만 main(2.3.2)과 다릅니다.)worker.py의 아바타 세션 생성 코드(avatar_id, 프로필 이미지 기반)와PIL·httpx·base64·re·ioimport를 삭제했습니다.entrypoint()·create_worker_options()의hedra_settings인자를 제거했습니다. 호스트 앱이create_worker_options()를 직접 호출한다면 이 인자를 빼야 합니다.HEDRA_ENABLED/HEDRA_API_KEY설정은 더 이상 읽지 않습니다. README와 CONTRIBUTING의 Hedra 안내를 삭제했습니다.Persona.avatar_id·profile_picture_url필드 설명에서 Hedra 표현을 정리했습니다. 필드 자체는 유지합니다.테스트
make -C backend lint10/10,type-check오류 0,unit-test통과Generated by Claude Code