Introduce common/constants.py (#10965)

### What problem does this PR solve?

As title.

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-11-03 16:32:37 +08:00
committed by GitHub
parent d008a4df9f
commit 121d3fd815
4 changed files with 66 additions and 4 deletions

View File

@ -17,8 +17,6 @@ NAME_LENGTH_LIMIT = 2**10
IMG_BASE64_PREFIX = "data:image/png;base64,"
SERVICE_CONF = "service_conf.yaml"
API_VERSION = "v1"
RAG_FLOW_SERVICE_NAME = "ragflow"
REQUEST_WAIT_SEC = 2

View File

@ -26,7 +26,7 @@ from api.utils import file_utils
from common.file_utils import get_project_base_directory
from filelock import FileLock
from api.utils.common import bytes_to_string, string_to_bytes
from api.constants import SERVICE_CONF
from common.contants import SERVICE_CONF
def conf_realpath(conf_name):