Get generation timeout configuration
(token: str = Depends(verify_admin_token))
| 1356 | |
| 1357 | @router.get("/api/config/generation") |
| 1358 | async def get_generation_config(token: str = Depends(verify_admin_token)): |
| 1359 | """Get generation timeout configuration""" |
| 1360 | config = await db.get_generation_config() |
| 1361 | return { |
| 1362 | "success": True, |
| 1363 | "config": { |
| 1364 | "image_timeout": config.image_timeout, |
| 1365 | "video_timeout": config.video_timeout, |
| 1366 | "max_retries": config.max_retries, |
| 1367 | } |
| 1368 | } |
| 1369 | |
| 1370 | |
| 1371 | @router.post("/api/config/generation") |
no test coverage detected