Fix typo in parameter name from 'nodel_label' to 'node_label'

This commit is contained in:
yangdx
2025-02-24 02:36:36 +08:00
parent 2ebab84b72
commit f29628125b
2 changed files with 3 additions and 3 deletions

View File

@@ -22,6 +22,6 @@ def create_graph_routes(rag, api_key: Optional[str] = None):
@router.get("/graphs", dependencies=[Depends(optional_api_key)])
async def get_knowledge_graph(label: str):
"""Get knowledge graph for a specific label"""
return await rag.get_knowledge_graph(nodel_label=label, max_depth=100)
return await rag.get_knowledge_graph(node_label=label, max_depth=100)
return router