Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: jinhai <[email protected]>
  • Loading branch information
JinHai-CN committed Nov 16, 2024
1 parent 77bdeb3 commit 8a4c050
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8a4c050

Please sign in to comment.