debug: add startup log to suggest-prompts endpoint to diagnose timeout

This commit is contained in:
ajaysi
2026-05-30 11:08:43 +05:30
parent ce2b8eefba
commit 9b472f1c18

View File

@@ -567,6 +567,7 @@ def suggest_prompts(
current_user: Dict[str, Any] = Depends(get_current_user)
) -> ImagePromptSuggestResponse:
user_id = str(current_user.get('id', ''))
logger.info(f"[suggest-prompts] Starting for user={user_id}, provider={req.provider}, model={req.model}")
try:
if req.provider:
provider = req.provider.lower()