diff --git a/backend/open_webui/routers/tasks.py b/backend/open_webui/routers/tasks.py index a2a6cdc92..324f81f44 100644 --- a/backend/open_webui/routers/tasks.py +++ b/backend/open_webui/routers/tasks.py @@ -186,9 +186,10 @@ async def generate_title( try: return await generate_chat_completion(request, form_data=payload, user=user) except Exception as e: + log.error("Exception occurred", exc_info=True) return JSONResponse( status_code=status.HTTP_400_BAD_REQUEST, - content={"detail": str(e)}, + content={"detail": "An internal error has occurred."}, )