feat(python): Add FishAudioSettings and HedraSettings#42
Merged
Conversation
외부 서비스 설정을 aioia-core로 통합하여 Buppy, fancall에서 공통으로 사용할 수 있도록 추가: - FishAudioSettings: Fish Audio API 통합 설정 - HedraSettings: Hedra API 통합 설정 - Pydantic v2 스타일로 작성 (model_validator) - enabled/api_key 검증 로직 포함 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
이 PR은 외부 서비스(Fish Audio, Hedra) 설정을 aioia-core에 통합하기 위해 FishAudioSettings와 HedraSettings 클래스를 추가합니다. Pydantic v2의 model_validator를 사용하여 enabled가 True일 때 api_key가 필수적으로 존재하도록 검증하는 로직이 포함되어 있습니다. 전반적으로 좋은 추가 기능이지만, 두 클래스 간에 상당한 코드 중복이 발견되었습니다. DRY 원칙을 적용하여 유지보수성을 높일 수 있도록 기본 클래스를 활용한 리팩토링을 제안했습니다. 이 부분을 수정하면 더 완성도 높은 코드가 될 것 같습니다.
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
개요
외부 서비스(Fish Audio, Hedra) 설정을 aioia-core로 통합하여 Buppy, fancall에서 공통으로 사용할 수 있도록 추가했습니다.
변경사항
FishAudioSettings: Fish Audio API 통합 설정 추가
enabled: Fish Audio 사용 여부 (기본값: False)api_key: Fish Audio API 키 (enabled=True일 때 필수)FISH_ENABLED,FISH_API_KEYHedraSettings: Hedra API 통합 설정 추가
enabled: Hedra 사용 여부 (기본값: False)api_key: Hedra API 키 (enabled=True일 때 필수)HEDRA_ENABLED,HEDRA_API_KEYPydantic v2 스타일로 작성 (
model_validator사용)각 설정에서 enabled=True일 때 api_key 필수 검증
영향도
테스트
🤖 Generated with Claude Code