feat: Unify background task representation and display by introducing generic status, progress, and task type fields across frontend and backend.

This commit is contained in:
2026-03-05 16:58:23 -03:00
parent 935e6b9675
commit c034f7223d
6 changed files with 195 additions and 73 deletions
+3 -3
View File
@@ -54,11 +54,11 @@ import psycopg2
class ImageRequest(BaseModel):
prompt: str
lesson_id: str
database_url: str = None
database_url: Optional[str] = None
table_name: str = "lessons"
progress_column: str = "generation_progress"
width: int = 512
height: int = 512
width: Optional[int] = 512
height: Optional[int] = 512
@app.post("/generate")
async def generate_image(request: ImageRequest):