HuggingFaceImageGenerator를 프로파일 기반으로 변경하여 빈 충돌 해결

- @Profile("huggingface") 추가로 기본 프로파일에서는 비활성화
- StableDiffusionImageGenerator를 기본 구현체로 사용
- content-service 배포 오류 해결
This commit is contained in:
cherry2250
2025-10-28 19:47:39 +09:00
parent 9305dfdb7f
commit b9514257b0
13 changed files with 273 additions and 1 deletions
@@ -30,9 +30,12 @@ import java.util.UUID;
* Hugging Face Inference API 이미지 생성 서비스
*
* Hugging Face Inference API를 사용하여 Stable Diffusion으로 이미지 생성 (무료)
*
* @Profile("huggingface") - huggingface 프로파일에서만 활성화
*/
@Slf4j
@Service
@org.springframework.context.annotation.Profile("huggingface")
public class HuggingFaceImageGenerator implements GenerateImagesUseCase {
private final HuggingFaceApiClient huggingFaceClient;