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.
function getModelBySrc(modelId: string, blobCoreKey: string): RegistryItem | —Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
modelId | string | ✓ | The model file identifier |
blobCoreKey | string | ✓ | The Hyperdrive blob core key associated with the model source |
Returns
RegistryItem | —The matching RegistryItem if found, or undefined if no model matches the given source identifiers.
Example
import { getModelBySrc } from "@qvac/sdk";
const model = getModelBySrc("llama-7b.gguf", "abc123...");
if (model) {
console.log(model.name, model.registryPath);
}