resolve_cache_dir

Function resolve_cache_dir 

Source
pub fn resolve_cache_dir(
    provider: &str,
    model_id: &str,
    options: &Value,
) -> PathBuf
Expand description

Resolve the cache directory for a given provider and model.

Priority (highest first):

  1. options["cache_dir"] – per-model override
  2. UNI_CACHE_DIR env var – global root override; resolves to $UNI_CACHE_DIR/<provider>/<model>
  3. .uni_cache/<provider>/<model> – default