QVAC Logo

getModelInfo( )

Retrieves information about a model.

function getModelInfo(params): Promise<{
  actualSize?: number;
  addon: "llm" | "whisper" | "embeddings" | "nmt" | "tts" | "vad";
  cachedAt?: Date;
  cacheFiles: object[];
  expectedSize: number;
  hyperbeeKey: string;
  hyperdriveKey: string;
  isCached: boolean;
  isLoaded: boolean;
  loadedInstances?: object[];
  modelId: string;
  name: string;
  sha256Checksum: string;
}>;

Parameters

NameTypeRequired?Description
paramsobjectModel query parameters

params

FieldTypeRequired?Description
namestringModel name

Returns

Promise<object> — Model information

FieldTypeRequired?Description
actualSizenumberActual size in bytes (if cached)
addon"llm" | "whisper" | "embeddings" | "nmt" | "tts" | "vad"Model type
cachedAtDateWhen the model was cached
cacheFilesobject[]Cache file information
expectedSizenumberExpected size in bytes
hyperbeeKeystringHyperbee key
hyperdriveKeystringHyperdrive key
isCachedbooleanWhether the model is cached
isLoadedbooleanWhether the model is loaded
loadedInstancesobject[]Loaded instances information
modelIdstringModel identifier
namestringModel name
sha256ChecksumstringSHA256 checksum

On this page