MCPcopy Create free account
hub / github.com/evilsocket/cake / from_path

Method from_path

cake-core/src/models/vibevoice/config.rs:75–79  ·  view source on GitHub ↗

Load from a config.json file path.

(path: &Path)

Source from the content-addressed store, hash-verified

73impl VibeVoiceConfig {
74 /// Load from a config.json file path.
75 pub fn from_path(path: &Path) -> Result<Self> {
76 let data = std::fs::read_to_string(path)?;
77 let cfg: Self = serde_json::from_str(&data)?;
78 Ok(cfg)
79 }
80
81 /// Convert the LLM backbone config to cake's common Config.
82 pub fn into_config(&self) -> Config {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected