Skip to main content

downloadModel

client.llm.downloadModel(data: LLMDownloadModelRequest): Promise<unknown>

Initiates the download of a model for local use.

Starts an asynchronous download of a model that can be run locally (e.g., via Ollama). Use to monitor progress.

Parameters

ParameterTypeRequiredDescription
dataLLMDownloadModelRequestYesThe download request specifying which model to download

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.llm.downloadModel(/* LLMDownloadModelRequest */);
console.log(result);