QVAC Logo

getModelByPath( )

Looks up a model in the built-in catalog by its registry path. Returns the matching registry item or undefined if not found.

function getModelByPath(registryPath: string): RegistryItem |

Parameters

NameTypeRequired?Description
registryPathstringThe full registry path of the model (e.g. "llama-3.2-1b-instruct-q4_0-gguf")

Returns

RegistryItem |

The matching RegistryItem if found, or undefined if no model with that registry path exists in the catalog.

Example

import { getModelByPath } from "@qvac/sdk";

const model = getModelByPath("llama-3.2-1b-instruct-q4_0-gguf");
if (model) {
  console.log(model.name, model.modelType);
}

On this page