From 3b1bf7da6771bd1d6852d3dcc1f906d5ae5c95d1 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期三, 12 三月 2025 13:49:12 +0800
Subject: [PATCH] 增加内容优化

---
 app/config/const.py |  123 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 121 insertions(+), 2 deletions(-)

diff --git a/app/config/const.py b/app/config/const.py
index 007e8e4..9c369f7 100644
--- a/app/config/const.py
+++ b/app/config/const.py
@@ -1,11 +1,130 @@
 
-### ----------dify------api token
+### ----------df------api token
 DOCUMENT_TO_CLEANING = "document_to_cleaning"
 DOCUMENT_TO_REPORT = "document_to_report"
 IMAGE_TO_TEXT = "image_and_text_conversion"
+DOCUMENT_IA_QUESTIONS = "document_ia_questions"
+DOCUMENT_IA_QUESTIONS_DS = "document_ia_questions_ds"
+DOCUMENT_IA_QUESTIONS_EQUIPMENT = "document_ia_questions_equipment"
+DOCUMENT_TO_REPORT_TITLE = "document_to_report_title"
+DOCUMENT_TO_TITLE = "document_to_title"
+DOCUMENT_TO_PAPER = "document_to_paper"
+
+
+### --------- file path------------------
+ENV_CONF_PATH = "app/config/env_conf"
+APP_SERVICE_PATH = "app/service/"
+APP_STATIC_PATH = "app/static"
+
 
 
 ### -----------app register --------------
 RAGFLOW = "ragflow_app"
 BISHENG = "bisheng_app"
-DIFY = "dify_app"
\ No newline at end of file
+DIFY = "dify_app"
+
+### ---------------app type-----------------
+BASIC_TYPE = "3"
+RG_TYPE = "1"
+BS_TYPE = "2"
+DF_TYPE = "4"
+
+###  ------------------status--------------------
+USER_STATSU_DELETE = "2"
+USER_STATSU_ON = "1"
+USER_STATSU_OFF = "0"
+
+Dialog_STATSU_DELETE = "2"
+Dialog_STATSU_ON = "1"
+Dialog_STATSU_OFF = "0"
+
+DEPT_STATUS_DELETE = "2"
+DEPT_STATUS_ON = "1"
+DEPT_STATUS_OFF = "0"
+
+ROLE_STATUS_DELETE = "2"
+ROLE_STATUS_ON = "1"
+ROLE_STATUS_OFF = "0"
+
+RESOURCE_STATUS_DELETE = "2"
+RESOURCE_STATUS_ON = "1"
+RESOURCE_STATUS_OFF = "0"
+
+
+###
+max_chunk_size  =5000
+
+
+### ---------chat mode--------------
+dialog_chat = "agent-dialog"
+workflow_chat = "workflow"
+advanced_chat = "advanced-chat"
+agent_chat = "agent-chat"
+base_chat = "chat"
+basic_chat = "agent-basic"
+complex_chat = "complex-chat"
+
+
+### ------------------------------
+rg_api_token = "6b8ee426c67511efb1510242ac1b0006"
+
+
+### ----------------evnet message value----------------------
+message_event = "message"
+message_agent_thought = "agent_thought"
+message_agent = "agent_message"
+message_end = "message_end"
+message_error = "error"
+message_file  = "message_file"
+message_tts  = "tts_message"
+message_tts_end  = "tts_message_end"
+message_replace  = "message_replace"
+message_ping = "ping"
+workflow_started = "workflow_started"
+node_started = "node_started"
+node_finished = "node_finished"
+workflow_finished = "workflow_finished"
+
+
+### --------------------smart output event message----------------------------------
+smart_message_cover = "message"
+smart_message_stream = "stream"
+smart_message_file = "message_file"
+smart_message_end = "message_end"
+smart_message_error = "error"
+smart_workflow_started = "workflow_started"
+smart_node_started = "node_started"
+smart_node_finished = "node_finished"
+smart_workflow_finished = "workflow_finished"
+
+
+### ---------------------------http status--------------------------------------
+http_200 = 200
+http_400 = 400
+http_500 = 500
+
+###-----------------------app account key--------------------------------------------
+chat_server = "chat_server"
+workflow_server = "workflow_server"
+smart_server = "smart_server"
+
+
+TMP_DICT = {chat_server: RAGFLOW, workflow_server: DIFY}
+
+
+###-------------------------------system-------------------------------------------------
+SYSTEM_ID = 1
+
+### --------------------------------complex mode----------------------------------------------
+complex_dialog_chat = 1 # 鏂囨。鍜屽熀纭�瀵硅瘽
+complex_network_chat = 2 # 鑱旂綉瀵硅瘽
+complex_knowledge_chat = 3 # 鐭ヨ瘑搴撳璇�
+complex_deep_chat = 6
+complex_mindmap_chat = 5  # 鎬濈淮瀵煎浘
+complex_content_optimization_chat = 4 # 鍐呭浼樺寲
+complex_clean_chat = 7 # 娓呮礂
+complex_title_chat = 8 # 灏忔爣棰�
+complex_report_chat = 9 # 鎶ュ憡
+
+### --------------------------------basic develop agent---------------------------------------------------
+basic_report_talk ="basic_report_talk"
\ No newline at end of file

--
Gitblit v1.8.0