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

Function get_str

cake-core/src/utils/gguf.rs:302–311  ·  view source on GitHub ↗
(
    content: &candle_core::quantized::gguf_file::Content,
    key: &str,
)

Source from the content-addressed store, hash-verified

300// ── Metadata helpers ─────────────────────────────────────────────────
301
302fn get_str(
303 content: &candle_core::quantized::gguf_file::Content,
304 key: &str,
305) -> Option<String> {
306 use candle_core::quantized::gguf_file::Value;
307 match content.metadata.get(key)? {
308 Value::String(s) => Some(s.clone()),
309 _ => None,
310 }
311}
312
313fn get_u32(
314 content: &candle_core::quantized::gguf_file::Content,

Callers 2

config_from_ggufFunction · 0.85
arch_from_ggufFunction · 0.85

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected