sipp-rs 0.1.0

Unified Rust library for extensible Sipp inference
//! GGUF metadata inspection through the engine lifecycle API.

use super::types::{ModelDetection, ModelError};

/////////////////////////////////////////////////////////////////////////////////
/// TESTS
/////////////////////////////////////////////////////////////////////////////////

#[cfg(test)]
#[path = "../../tests/lifecycle/gguf_tests.rs"]
mod gguf_tests;

/////////////////////////////////////////////////////////////////////////////////
/// SRC
/////////////////////////////////////////////////////////////////////////////////

pub fn detect_model_from_gguf_bytes(
    name: impl Into<String>,
    bytes: &[u8],
) -> Result<ModelDetection, ModelError> {
    crate::shard::detect_model_from_gguf_bytes(name, bytes).map_err(ModelError::from)
}