• Get all known model hashes.

    Returns a copy of all configured model hashes. The returned object is a shallow copy, so modifications won't affect the internal hash store.

    Returns Record<string, string>

    Record of model names to their SHA256 hashes

    Example

    const allHashes = getAllModelHashes();
    console.log('Configured models:', Object.keys(allHashes));

    // Check if a specific model has a hash
    if ('u2net.onnx' in allHashes) {
    console.log('u2net has integrity verification enabled');
    }