Skip to main content

download

client.localModels.download(data: DownloadLocalModelRequest): Promise<unknown>

Initiates the download of a model for local execution.

Starts an asynchronous download of the specified model. Large models may take significant time and disk space. Monitor download progress through status endpoints.

Parameters​

ParameterTypeRequiredDescription
dataDownloadLocalModelRequestYesThe download request configuration

Returns​

Promise<unknown> — A promise that resolves when the download has been initiated

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.localModels.download(/* DownloadLocalModelRequest */);
console.log(result);