Load from a config.json file path.
(path: &Path)
| 73 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected