Property ModelStorageDirectory
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
Remarks
The storage directory is resolved in the following order:
- The value set programmatically via this property.
- The path specified by the ModelStorageDirectoryEnvVar environment variable (
LMKIT_MODELS_DIR). - The default application data folder (
%APPDATA%/LM-Kit/modelson Windows,~/.local/share/LM-Kit/modelson Linux/macOS).
Exceptions
- ArgumentException
Thrown if the provided path is null, empty, or contains only whitespace during a set operation.