DownloadOptions
Defined in: download.ts:47
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: download.ts:53
Base URL. Default: NLPGRAPH_BASE_URL or the vendored R2 URL.
optionaldir?:string
Defined in: download.ts:51
Target directory. Default: the on-disk cache for the model.
force?
Section titled “force?”
optionalforce?:boolean
Defined in: download.ts:55
Re-download even if files already exist.
model?
Section titled “model?”
optionalmodel?:string
Defined in: download.ts:49
Model variant directory on R2. Default small.
onProgress?
Section titled “onProgress?”
optionalonProgress?: (msg) =>void
Defined in: download.ts:57
Progress callback (defaults to no-op).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void