feat: add unified asset retry endpoint
Some checks failed
Build and Push Docker Images / changes (push) Has been cancelled
Build and Push Docker Images / build-backend (push) Has been cancelled
Build and Push Docker Images / build-frontend (push) Has been cancelled
Build and Push Docker Images / build-admin-frontend (push) Has been cancelled

This commit is contained in:
2026-04-18 11:40:10 +08:00
parent b8d3cb4644
commit 0613238a37
9 changed files with 316 additions and 91 deletions

View File

@@ -5,7 +5,6 @@ from typing import Literal
from pydantic import BaseModel, Field
MAX_DATA_LENGTH = 2000
MAX_EDU_THEME_LENGTH = 200
MAX_TTS_LENGTH = 4000
@@ -120,6 +119,12 @@ class StoryImageResponse(StoryStatusMixin):
image_url: str | None
class StoryAssetRetryRequest(BaseModel):
"""Retry selected generated assets for a story."""
assets: list[Literal["image", "audio"]] = Field(..., min_length=1)
class AchievementItem(BaseModel):
"""Achievement item returned for a story."""