Skip to content

DownloadOptions

Defined in: download.ts:47

optional baseUrl?: string

Defined in: download.ts:53

Base URL. Default: NLPGRAPH_BASE_URL or the vendored R2 URL.


optional dir?: string

Defined in: download.ts:51

Target directory. Default: the on-disk cache for the model.


optional force?: boolean

Defined in: download.ts:55

Re-download even if files already exist.


optional model?: string

Defined in: download.ts:49

Model variant directory on R2. Default small.


optional onProgress?: (msg) => void

Defined in: download.ts:57

Progress callback (defaults to no-op).

string

void