Skip to main content

try_count

Function try_count 

Source
pub async fn try_count(
    model: &str,
    body: &[u8],
    map: Option<&Value>,
    registry: RegistryHandle<'_>,
) -> Result<CountResult, CountError>
Expand description

Strict counting for correctness-sensitive paths. This rejects malformed JSON and, with hf-registry, waits for store hydration/download instead of returning a result that changes after a background load.