Repository navigation
Feat: GPT Image 2 Batch 기반 캐릭터 이미지 fan-out - #150
Merged
Merged
Conversation
9 tasks done
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.
🧑🏻💻 PR 작업 내역 요약
도서별 대표 이미지를 canonical style reference로 고정하고, 나머지 캐릭터 이미지를 GPT Image 2 Image Edit Batch로 생성하도록 변경했습니다.
관리자는 4개의 대표 후보만 동기 생성해 하나를 선택하고, 이후 fan-out은 처리 상태와 로그를 남기는 비동기 Batch job으로 수행합니다. 새 스타일 재생성 시에는 이미지 URL을 버전화하고 교체된 S3 객체를 정리합니다.
Closes #149
📋 변경 사항
gpt-image-2로 변경processing_job/processing_job_log구조를 활용해 상태와 로그 저장V9__character_image_batch_jobs.sql마이그레이션 추가reference/attempt-{attemptNo}/slot-{slotNo}.png경로로 버전화{characterId}/reference-v{referenceVersion}/attempt-{attemptNo}.png경로로 버전화character-images/S3 객체 삭제🔍 Code Review
POST /api/v2/admin/image-generation/books/{bookId}/reference-candidates/{candidateId}/select응답 직후fanoutJob.status=QUEUED인지 확인해주세요.GET /api/v2/admin/image-generation/fanout-jobs/{jobId}의status=READY를 기준으로 판단합니다.images[].image_url이 동일한 CloudFront URL인지 확인해주세요.character-images/경로로 제한됩니다..\gradlew.bat test통과📸 ScreenShot
Swagger에서 fan-out job 상태 조회 및 로그 조회 API를 확인할 수 있습니다.