MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / resolve_model_path

Function resolve_model_path

tools/audiocpp_cli/run_audiocpp_cli_path_tests.py:297–305  ·  view source on GitHub ↗
(models_root: Path, value: str)

Source from the content-addressed store, hash-verified

295 if isinstance(out.get("options"), dict):
296 options = dict(out["options"])
297 for key, value in options.items():
298 if key.endswith("_path") or key.endswith("_file") or key.endswith(".path") or key.endswith(".file"):
299 options[key] = maybe_absolute_path(value)
300 elif key in {"voice_samples", "vibevoice.voice_samples"}:
301 options[key] = maybe_absolute_path_list(value)
302 out["options"] = options
303 return out
304
305
306def write_sequence_file(case: dict[str, Any], case_dir: Path) -> Path:
307 sequence_path = case_dir / "requests.json"
308 requests = [materialize_request_paths(request) for request in case["requests"]]

Callers 1

build_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected