Skip to content

TryResolveModelFile Method ​

Definition ​

  • Namespace: JASE.Embeddings.LmKit
  • Assembly: JASE.Embeddings.LmKit.dll

bool TryResolveModelFile(string modelId, string modelsDirectory, string explicitPath, out string path) ​

csharp
bool TryResolveModelFile(string modelId, string modelsDirectory, string explicitPath, out string path)

Resolves a local model file from an explicit path or a models directory.

Parameters ​

NameDescription
explicitPathOptional full path to a GGUF or LMK file.
modelIdThe LM-Kit catalog identifier.
modelsDirectoryOptional extra search directory.
pathThe resolved file path when found.

Returns ​

when a file exists at the resolved location.