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
| Name | Type | Required? | Description |
|---|---|---|---|
registryPath | string | ✓ | The 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);
}getModelByName( )
Looks up a model in the built-in catalog by its constant name (e.g. "LLAMA_3_2_1B_INST_Q4_0"). Returns the matching registry item or undefined if not found.
getModelBySrc( )
Looks up a model in the built-in catalog by its model file ID and blob core key. Used for resolving models from Hyperdrive-based sources.