QVAC Logo

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

NameTypeRequired?Description
modelIdstringThe model file identifier
blobCoreKeystringThe 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);
}

On this page