Skip to main content

list

client.localModels.list(): Promise<LocalModel[]>

Lists all models that have been downloaded to the local machine.

Returns metadata for models currently stored on disk, regardless of whether they are currently loaded into memory for inference.

Parameters

No parameters.

Returns

Promise<LocalModel[]> — A promise that resolves to an array of downloaded local models

Example

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

const client = new CodeBoltClient();

const result = await client.localModels.list();
console.log(result);