MCPcopy
hub / github.com/lightningpixel/modly / _apply_manifest_metadata

Function _apply_manifest_metadata

api/runner.py:101–105  ·  view source on GitHub ↗
(gen, manifest: dict, node: dict)

Source from the content-addressed store, hash-verified

99
100
101def _apply_manifest_metadata(gen, manifest: dict, node: dict) -> None:
102 gen.hf_repo = node.get("hf_repo") or manifest.get("hf_repo", "")
103 gen.hf_skip_prefixes = node.get("hf_skip_prefixes") or manifest.get("hf_skip_prefixes", [])
104 gen.download_check = node.get("download_check") or manifest.get("download_check", "")
105 gen._params_schema = node.get("params_schema") or manifest.get("params_schema", [])
106
107
108# ------------------------------------------------------------------ #

Calls

no outgoing calls