MCPcopy
hub / github.com/BinNong/meet-libai / get_with_nested_params

Method get_with_nested_params

config/config.py:41–50  ·  view source on GitHub ↗
(self, *params)

Source from the content-addressed store, hash-verified

39
40 @lru_cache(maxsize=128)
41 def get_with_nested_params(self, *params):
42 assert self._config is not None, "please load config first"
43 conf = self._config
44 for param in params:
45 if param in conf:
46 conf = conf[param]
47 else:
48 raise KeyError(f"{param} not found in config")
49
50 return conf
51
52
53if __name__ == "__main__":

Callers 9

run_webuiFunction · 0.80
run_apiFunction · 0.80
accelerate.pyFile · 0.80
file_utils.pyFile · 0.80
EntitySearcherClass · 0.80
__init__Method · 0.80
__init__Method · 0.80
fake_openai.pyFile · 0.80
get_tts_model_nameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected