Skip to content

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

ParameterType
statusobject
status.totalSizenumber
status.downloadedSizenumber

Returns

void

parallelDownloads?

ts
optional parallelDownloads: number;

The number of parallel downloads to use fo files.

Defaults to 4.

Defined in

utils/createModelDownloader.ts:443