Table of Contents

Property ModelStorageDirectory

Namespace
LMKit.Global
Assembly
LM-Kit.NET.dll

ModelStorageDirectory

Gets or sets the default storage path for model files. If the path does not exist during a set operation, it will be created automatically.

public static string ModelStorageDirectory { get; set; }

Property Value

string

Remarks

The storage directory is resolved in the following order:

  1. The value set programmatically via this property.
  2. The path specified by the ModelStorageDirectoryEnvVar environment variable (LMKIT_MODELS_DIR).
  3. The default application data folder (%APPDATA%/LM-Kit/models on Windows, ~/.local/share/LM-Kit/models on Linux/macOS).

Exceptions

ArgumentException

Thrown if the provided path is null, empty, or contains only whitespace during a set operation.