dify/api/controllers/console/__init__.py

30 lines
1.0 KiB
Python
Raw Normal View History

2023-05-15 08:51:32 +08:00
from flask import Blueprint
from libs.external_api import ExternalApi
bp = Blueprint('console', __name__, url_prefix='/console/api')
api = ExternalApi(bp)
2023-05-25 15:54:45 +08:00
# Import other controllers
from . import extension, setup, version, apikey, admin
2023-05-25 15:54:45 +08:00
2023-05-15 08:51:32 +08:00
# Import app controllers
from .app import advanced_prompt_template, app, site, completion, model_config, statistic, conversation, message, generator, audio
2023-05-15 08:51:32 +08:00
# Import auth controllers
from .auth import login, oauth, data_source_oauth, activate
2023-05-15 08:51:32 +08:00
# Import datasets controllers
from .datasets import datasets, datasets_document, datasets_segments, file, hit_testing, data_source
2023-05-15 08:51:32 +08:00
2023-05-25 15:54:45 +08:00
# Import workspace controllers
from .workspace import workspace, members, providers, model_providers, account, tool_providers, models
2023-05-25 15:54:45 +08:00
# Import explore controllers
2023-07-07 17:50:42 +08:00
from .explore import installed_app, recommended_app, completion, conversation, message, parameter, saved_message, audio
# Import universal chat controllers
from .universal_chat import chat, conversation, message, parameter, audio
from .billing import billing