const.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ### ----------df------api token
  2. DOCUMENT_TO_CLEANING = "document_to_cleaning"
  3. DOCUMENT_TO_REPORT = "document_to_report"
  4. IMAGE_TO_TEXT = "image_and_text_conversion"
  5. DOCUMENT_IA_QUESTIONS = "document_ia_questions"
  6. DOCUMENT_IA_QUESTIONS_DS = "document_ia_questions_ds"
  7. DOCUMENT_IA_QUESTIONS_EQUIPMENT = "document_ia_questions_equipment"
  8. DOCUMENT_TO_REPORT_TITLE = "document_to_report_title"
  9. DOCUMENT_TO_TITLE = "document_to_title"
  10. DOCUMENT_TO_PAPER = "document_to_paper"
  11. ### --------- file path------------------
  12. ENV_CONF_PATH = "app/config/env_conf"
  13. APP_SERVICE_PATH = "app/service/"
  14. APP_STATIC_PATH = "app/static"
  15. ### -----------app register --------------
  16. RAGFLOW = "ragflow_app"
  17. BISHENG = "bisheng_app"
  18. DIFY = "dify_app"
  19. ### ---------------app type-----------------
  20. BASIC_TYPE = "3"
  21. RG_TYPE = "1"
  22. BS_TYPE = "2"
  23. DF_TYPE = "4"
  24. ### ------------------status--------------------
  25. USER_STATSU_DELETE = "2"
  26. USER_STATSU_ON = "1"
  27. USER_STATSU_OFF = "0"
  28. Dialog_STATSU_DELETE = "2"
  29. Dialog_STATSU_ON = "1"
  30. Dialog_STATSU_OFF = "0"
  31. DEPT_STATUS_DELETE = "2"
  32. DEPT_STATUS_ON = "1"
  33. DEPT_STATUS_OFF = "0"
  34. ROLE_STATUS_DELETE = "2"
  35. ROLE_STATUS_ON = "1"
  36. ROLE_STATUS_OFF = "0"
  37. RESOURCE_STATUS_DELETE = "2"
  38. RESOURCE_STATUS_ON = "1"
  39. RESOURCE_STATUS_OFF = "0"
  40. ###
  41. max_chunk_size =5000
  42. ### ---------chat mode--------------
  43. dialog_chat = "agent-dialog"
  44. workflow_chat = "workflow"
  45. advanced_chat = "advanced-chat"
  46. agent_chat = "agent-chat"
  47. base_chat = "chat"
  48. basic_chat = "agent-basic"
  49. complex_chat = "complex-chat"
  50. ### ------------------------------
  51. rg_api_token = "6b8ee426c67511efb1510242ac1b0006"
  52. ### ----------------evnet message value----------------------
  53. message_event = "message"
  54. message_agent_thought = "agent_thought"
  55. message_agent = "agent_message"
  56. message_end = "message_end"
  57. message_error = "error"
  58. message_file = "message_file"
  59. message_tts = "tts_message"
  60. message_tts_end = "tts_message_end"
  61. message_replace = "message_replace"
  62. message_ping = "ping"
  63. workflow_started = "workflow_started"
  64. node_started = "node_started"
  65. node_finished = "node_finished"
  66. workflow_finished = "workflow_finished"
  67. ### --------------------smart output event message----------------------------------
  68. smart_message_cover = "message"
  69. smart_message_stream = "stream"
  70. smart_message_file = "message_file"
  71. smart_message_end = "message_end"
  72. smart_message_error = "error"
  73. smart_workflow_started = "workflow_started"
  74. smart_node_started = "node_started"
  75. smart_node_finished = "node_finished"
  76. smart_workflow_finished = "workflow_finished"
  77. ### ---------------------------http status--------------------------------------
  78. http_200 = 200
  79. http_400 = 400
  80. http_500 = 500
  81. ###-----------------------app account key--------------------------------------------
  82. chat_server = "chat_server"
  83. workflow_server = "workflow_server"
  84. smart_server = "smart_server"
  85. TMP_DICT = {chat_server: RAGFLOW, workflow_server: DIFY}
  86. ###-------------------------------system-------------------------------------------------
  87. SYSTEM_ID = 1
  88. SYSTEM_STATUS_EXPIRED = 2
  89. SYSTEM_STATUS_ON = 1
  90. SYSTEM_STATUS_OFF = 0
  91. ### --------------------------------complex mode----------------------------------------------
  92. complex_dialog_chat = 1 # 文档和基础对话
  93. complex_network_chat = 2 # 联网对话
  94. complex_knowledge_chat = 3 # 知识库对话
  95. complex_deep_chat = 6
  96. complex_mindmap_chat = 5 # 思维导图
  97. complex_content_optimization_chat = 4 # 内容优化
  98. complex_clean_chat = 7 # 清洗
  99. complex_title_chat = 8 # 小标题
  100. complex_report_chat = 9 # 报告
  101. complex_knowledge_chat_deep = 10 # 知识库对话-深度对话
  102. ### --------------------------------basic develop agent---------------------------------------------------
  103. basic_report_talk ="basic_report_talk"