改造 chunk_app.py

This commit is contained in:
2025-10-29 13:14:56 +08:00
parent 7d0d65a0ac
commit 0c31eabf20

View File

@@ -129,6 +129,7 @@ def setup_routes(app: FastAPI):
from api.apps.mcp_server_app import router as mcp_router
from api.apps.tenant_app import router as tenant_router
from api.apps.llm_app import router as llm_router
from api.apps.chunk_app import router as chunk_router
app.include_router(user_router, prefix=f"/{API_VERSION}/user", tags=["User"])
app.include_router(kb_router, prefix=f"/{API_VERSION}/kb", tags=["KB"])
@@ -138,6 +139,7 @@ def setup_routes(app: FastAPI):
app.include_router(mcp_router, prefix=f"/{API_VERSION}/mcp", tags=["MCP"])
app.include_router(tenant_router, prefix=f"/{API_VERSION}/tenant", tags=["Tenant"])
app.include_router(llm_router, prefix=f"/{API_VERSION}/llm", tags=["LLM"])
app.include_router(chunk_router, prefix=f"/{API_VERSION}/chunk", tags=["Chunk"])
def get_current_user_from_token(authorization: str):
"""从token获取当前用户"""