diff --git a/api/settings.py b/api/settings.py index 0abf548e8c..d5936348cf 100644 --- a/api/settings.py +++ b/api/settings.py @@ -173,15 +173,6 @@ def init_settings(): retrievaler = search.Dealer(docStoreConn) kg_retrievaler = kg_search.KGSearch(docStoreConn) -def get_host_ip(): - global HOST_IP - return HOST_IP - - -def get_host_port(): - global HOST_PORT - return HOST_PORT - class CustomEnum(Enum): @classmethod @@ -201,16 +192,6 @@ def names(cls): return [member.name for member in cls.__members__.values()] -class PythonDependenceName(CustomEnum): - Rag_Source_Code = "python" - Python_Env = "miniconda" - - -class ModelStorage(CustomEnum): - REDIS = "redis" - MYSQL = "mysql" - - class RetCode(IntEnum, CustomEnum): SUCCESS = 0 NOT_EFFECTIVE = 10