feat(admin): simplify phrase generation by removing missing phrases endpoint
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user