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
| Error | When |
|---|---|
QVAC_MODEL_REGISTRY_QUERY_FAILED | The 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})`);
}