MCPcopy
hub / github.com/AstrBotDevs/AstrBot / dashboard_create_thread

Function dashboard_create_thread

astrbot/dashboard/api/chat.py:421–427  ·  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

419
420@legacy_router.post("/thread/create")
421async def dashboard_create_thread(
422 request: Request,
423 username: str = Depends(require_dashboard_user),
424 service: ChatService = Depends(get_service),
425):
426 body = await _json_or_empty(request)
427 return await _run(lambda: service.create_thread(username, body))
428
429
430@legacy_router.get("/thread/get")

Callers

nothing calls this directly

Calls 3

_json_or_emptyFunction · 0.70
_runFunction · 0.70
create_threadMethod · 0.45

Tested by

no test coverage detected