Expand description
Models directory resolution, and the canonical form of a model file path.
Provides utilities for resolving the models directory from explicit paths,
environment variables, or platform defaults, plus the single definition of
what makes two paths “the same model file” — see
canonical_model_path.
Structs§
- Models
DirResolution - Resolution result for the models directory.
Enums§
- Models
DirSource - How the models directory was derived.
Constants§
- DEFAULT_
MODELS_ DIR_ RELATIVE - Default relative location for downloaded models on non-Windows platforms.
Functions§
- canonical_
model_ path - Resolve
pathto the one form the library identifies a model file by. - canonical_
model_ path_ string - The canonical path as the string the
file_pathcolumn stores. - default_
models_ dir - Return the platform-specific default models directory.
- resolve_
models_ dir - Resolve the models directory from an explicit override, env var, or default.