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

Function dashboard_import_documents

astrbot/dashboard/api/knowledge_bases.py:418–423  ·  view source on GitHub ↗
(
    request: Request,
    _username: str = Depends(require_dashboard_user),
    service: KnowledgeBaseService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

416
417@legacy_router.post("/document/import")
418async def dashboard_import_documents(
419 request: Request,
420 _username: str = Depends(require_dashboard_user),
421 service: KnowledgeBaseService = Depends(get_service),
422):
423 return await _run_json(request, service.import_documents, prefix="导入文档失败")
424
425
426@legacy_router.post("/document/upload/url")

Callers

nothing calls this directly

Calls 1

_run_jsonFunction · 0.70

Tested by

no test coverage detected