MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / dashboard_delete_thread

Function dashboard_delete_thread

astrbot/dashboard/api/chat.py:466–474  ·  view source on GitHub ↗
(
    request: Request,
    username: str = Depends(require_dashboard_user),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

464
465@legacy_router.post("/thread/delete")
466async def dashboard_delete_thread(
467 request: Request,
468 username: str = Depends(require_dashboard_user),
469 service: ChatService = Depends(get_service),
470):
471 body = await _json_or_empty(request)
472 return await _run(
473 lambda: service.delete_thread_from_dashboard_payload(username, body)
474 )
475
476
477@legacy_router.get("/get_file")

Callers

nothing calls this directly

Calls 3

_json_or_emptyFunction · 0.70
_runFunction · 0.70

Tested by

no test coverage detected