feat(skincare): allow HEIC/HEIF uploads in skin analysis

This commit is contained in:
Piotr Oleszczyk 2026-03-01 23:23:04 +01:00
parent f1acfa21fc
commit d3bd2ff30d
2 changed files with 8 additions and 2 deletions

View file

@ -140,7 +140,13 @@ async def analyze_skin_photos(
if not (1 <= len(photos) <= 3):
raise HTTPException(status_code=422, detail="Send between 1 and 3 photos.")
allowed = {"image/jpeg", "image/png", "image/webp"}
allowed = {
"image/heic",
"image/heif",
"image/jpeg",
"image/png",
"image/webp",
}
parts: list[genai_types.Part] = []
for photo in photos:
if photo.content_type not in allowed: