__init__.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. from flask import Blueprint
  2. from libs.external_api import ExternalApi
  3. bp = Blueprint("console", __name__, url_prefix="/console/api")
  4. api = ExternalApi(bp)
  5. # Import other controllers
  6. from . import admin, apikey, extension, feature, ping, setup, version
  7. # Import app controllers
  8. from .app import (
  9. advanced_prompt_template,
  10. agent,
  11. annotation,
  12. app,
  13. audio,
  14. completion,
  15. conversation,
  16. conversation_variables,
  17. generator,
  18. message,
  19. model_config,
  20. ops_trace,
  21. site,
  22. statistic,
  23. workflow,
  24. workflow_app_log,
  25. workflow_run,
  26. workflow_statistic,
  27. )
  28. # Import auth controllers
  29. from .auth import activate, data_source_bearer_auth, data_source_oauth, forgot_password, login, oauth
  30. # Import billing controllers
  31. from .billing import billing
  32. # Import datasets controllers
  33. from .datasets import (
  34. data_source,
  35. datasets,
  36. datasets_document,
  37. datasets_segments,
  38. external,
  39. file,
  40. hit_testing,
  41. website,
  42. )
  43. # Import explore controllers
  44. from .explore import (
  45. audio,
  46. completion,
  47. conversation,
  48. installed_app,
  49. message,
  50. parameter,
  51. recommended_app,
  52. saved_message,
  53. workflow,
  54. )
  55. # Import tag controllers
  56. from .tag import tags
  57. # Import workspace controllers
  58. from .workspace import (
  59. account,
  60. endpoint,
  61. load_balancing_config,
  62. members,
  63. model_providers,
  64. models,
  65. plugin,
  66. tool_providers,
  67. workspace,
  68. )