Skip to main content

getModels

client.llm.getModels(data: LLMGetModelsRequest): Promise<LLMModel[]>

Retrieves the available models for a specific LLM provider.

Queries the models catalog for a given provider, returning all models that can be used with that provider's current configuration and API key.

Parameters

ParameterTypeRequiredDescription
dataLLMGetModelsRequestYesThe request specifying which provider's models to retrieve

Returns

Promise<LLMModel[]> — A promise that resolves to an array of models available for the provider

Example

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

const client = new CodeBoltClient();

const result = await client.llm.getModels(/* LLMGetModelsRequest */);
console.log(result);