Type Alias: CombinedModelDownloaderOptions
ts
type CombinedModelDownloaderOptions: {
showCliProgress: boolean;
onProgress: (status: {
totalSize: number;
downloadedSize: number;
}) => void;
parallelDownloads: number;
};
Type declaration
showCliProgress?
ts
optional showCliProgress: boolean;
Defaults to false
.
onProgress()?
ts
optional onProgress: (status: {
totalSize: number;
downloadedSize: number;
}) => void;
Parameters
Parameter | Type |
---|---|
status | object |
status.totalSize | number |
status.downloadedSize | number |
Returns
void
parallelDownloads?
ts
optional parallelDownloads: number;
The number of parallel downloads to use fo files.
Defaults to 4
.