importosimportjsonimportlogginglogger=logging.getLogger(__name__)classInference(object):def__int__(self):self.params_base_url="llm_set/params/default.json"self.paras_base_dict=self.get_paras_base()defget_paras_base(self):ifnotos.path.exists(self.params_base_url):logger.error(f"params_base_url:{self.params_base_url} is not exists.")content=open(self.params_base_url).read()returnjson.loads(content)