feat(admin): simplify phrase generation by removing missing phrases endpoint

This commit is contained in:
2026-07-24 11:38:50 -04:00
parent da78914a9f
commit 29a51eb1b8
2 changed files with 1 additions and 14 deletions
+1 -7
View File
@@ -63,13 +63,7 @@ async def scan_library(request: Request, config: AppConfig, session: AsyncDbSess
@router.post("/phrases/generate-all", response_class=HTMLResponse)
async def generate_all_phrases(request: Request, config: AppConfig, session: AsyncDbSession) -> HTMLResponse:
"""Regenerate candidate phrases for every indexed book without LLM judging."""
return await run_phrase_generation(request, config, session, only_missing=False)
@router.post("/phrases/generate-missing", response_class=HTMLResponse)
async def generate_missing_phrases(request: Request, config: AppConfig, session: AsyncDbSession) -> HTMLResponse:
"""Generate candidate phrases only for books that have none yet."""
return await run_phrase_generation(request, config, session, only_missing=True)
return await run_phrase_generation(request, config, session)
async def run_phrase_generation(