Huggingface.js documentation
Interface: RangeEditCacheEntry
@huggingface/inference
Use Inference ClientAPI reference
Classes
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Interfaces
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerOptionsTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Modules
@huggingface/hub
Interact with the HubAPI Reference
Classes
Interfaces
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceCredentialsDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
Interface: RangeEditCacheEntry
Properties
lastTermChunks
• lastTermChunks: { hash: string ; length: number }[]
The last term’s chunks (hash + length)
Defined in
packages/hub/src/utils/rangeEdit.ts:29
openSubtree
• openSubtree: null | MerkleHashSubtreeJson
Partial merkle state of all chunks except the last term’s
(at_start: true, at_end: false); null when the file has a single term.
Defined in
packages/hub/src/utils/rangeEdit.ts:27
size
• size: number
Total file size in bytes
Defined in
packages/hub/src/utils/rangeEdit.ts:20
terms
• terms: OriginalTerm & { rangeHash: string }[]
The file’s terms, in order, with their verification range hashes
Defined in
packages/hub/src/utils/rangeEdit.ts:22
Update on GitHub