QVAC Logo

modelRegistryList( )

Lists all available models from the QVAC model registry.

function modelRegistryList(): Promise<ModelRegistryEntry[]>;

Parameters

None.

Returns

Promise<ModelRegistryEntry[]> — Array of all available model entries. See modelRegistryGetModel() for the ModelRegistryEntry shape.

Throws

ErrorWhen
QVAC_MODEL_REGISTRY_QUERY_FAILEDThe registry query fails

Example

const models = await modelRegistryList();
console.log(`Available models: ${models.length}`);
for (const model of models) {
  console.log(`${model.name} (${model.addon}, ${model.quantization})`);
}

On this page