Skip to content

design-image: Nano Banana 모델 버전 업데이트 및 circuit breaker 복구 메커니즘 부재 #3

@thxforall

Description

@thxforall

문제

1. Preview 모델 API 변경 가능성

  • 현재 gemini-2.0-flash-preview-image-generation 사용 중
  • Preview 모델은 deprecated/변경 가능성이 높음
  • 최신 이미지 생성 모델로 업데이트 필요 (Gemini 2.5 이미지 생성 모델 확인)

2. Circuit Breaker 복구 메커니즘 없음

  • EditorialService._image_model_available 플래그가 404 발생 시 False로 설정
  • 한 번 비활성화되면 서비스 재시작 전까지 복구 불가
  • 일시적 API 장애에도 세션 전체에서 이미지 생성 비활성화

3. Layout Image 파싱 안정성

  • parse_layout_image()가 Vision AI로 블록 구조 추출
  • 이미지 생성 모델 변경 시 레이아웃 스타일 변화로 파싱 정확도 영향 가능

관련 파일

  • src/editorial_ai/services/editorial_service.py (generate_layout_image, parse_layout_image)
  • src/editorial_ai/nodes/editorial.py
  • src/editorial_ai/routing/routing_config.yaml

제안

  • 최신 Gemini 이미지 생성 모델 조사 및 마이그레이션
  • Circuit breaker에 TTL 기반 자동 복구 추가 (예: 5분 후 재시도)
  • 이미지 생성 실패 시 fallback 템플릿 레이아웃 품질 개선
  • parse_layout_image E2E 테스트 추가

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions