-
public final class ModelDownloader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classModelDownloader.Companion
-
Constructor Summary
Constructors Constructor Description ModelDownloader(Context context, OkHttpClient client)
-
Method Summary
Modifier and Type Method Description final List<CachedModel>getDownloadedModels()final Map<String, File>download(ModelConfig config)Downloads every file the recipe lists (no per-type filtering — a GGUF model ships a single modelfile, an ONNX model shipsmodel+tokenizer, etc.-
-
Constructor Detail
-
ModelDownloader
ModelDownloader(Context context, OkHttpClient client)
-
-
Method Detail
-
getDownloadedModels
final List<CachedModel> getDownloadedModels()
-
download
final Map<String, File> download(ModelConfig config)
Downloads every file the recipe lists (no per-type filtering — a GGUF model ships a single
modelfile, an ONNX model shipsmodel+tokenizer, etc.), keyed by ModelFile.type.
-
-
-
-