mirror of
https://github.com/langgenius/dify.git
synced 2026-08-29 19:54:46 +08:00
# Conflicts: # api/controllers/console/app/site.py # api/controllers/console/datasets/datasets.py # api/core/plugin/backwards_invocation/model.py # api/core/rag/rerank/rerank_model.py # api/tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py # api/tests/unit_tests/core/plugin/test_backwards_invocation_model.py # api/tests/unit_tests/tasks/test_batch_clean_document_task.py # packages/contracts/generated/api/service/orpc.gen.ts # web/app/components/datasets/rename-modal/index.tsx # web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx # web/features/tag-management/components/tag-search-content.tsx
50 lines
1.3 KiB
Python
50 lines
1.3 KiB
Python
from flask import Blueprint
|
|
from flask_restx import Namespace
|
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
bp = Blueprint("inner_api", __name__, url_prefix="/inner/api")
|
|
|
|
api = ExternalApi(
|
|
bp,
|
|
version="1.0",
|
|
title="Inner API",
|
|
description="Internal APIs for enterprise features, billing, knowledge retrieval, and plugin communication",
|
|
)
|
|
|
|
# Create namespace
|
|
inner_api_ns = Namespace("inner_api", description="Internal API operations", path="/")
|
|
|
|
from . import mail as _mail
|
|
from . import runtime_credentials as _runtime_credentials
|
|
from .agent import files as _agent_files
|
|
from .agent import llm as _agent_llm
|
|
from .agent import tools as _agent_tools
|
|
from .app import dsl as _app_dsl
|
|
from .knowledge import retrieval as _knowledge_retrieval
|
|
from .knowledge_fs import storage as _knowledge_fs_storage
|
|
from .plugin import agent_config as _agent_config
|
|
from .plugin import plugin as _plugin
|
|
from .plugin import skills as _skills
|
|
from .workspace import workspace as _workspace
|
|
|
|
api.add_namespace(inner_api_ns)
|
|
|
|
__all__ = [
|
|
"_agent_config",
|
|
"_agent_files",
|
|
"_agent_llm",
|
|
"_agent_tools",
|
|
"_app_dsl",
|
|
"_knowledge_fs_storage",
|
|
"_knowledge_retrieval",
|
|
"_mail",
|
|
"_plugin",
|
|
"_runtime_credentials",
|
|
"_skills",
|
|
"_workspace",
|
|
"api",
|
|
"bp",
|
|
"inner_api_ns",
|
|
]
|