EmbeddedModelManager class
Web/WASM implementation of EmbeddedModelManager without dart:io or path_provider.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCustomModel(
EmbeddedGgufModel model) → Future< void> -
deleteAllModels(
) → Future< void> -
deleteModel(
String filename) → Future< void> -
discoverPopularModels(
{String? query, int? maxRamGb, String sort = 'downloads', int limit = 20}) → Future< List< HfDiscoveryResult> > -
downloadModel(
{required String url, required String filename, void onProgress(double progress)?, DownloadCancelToken? cancelToken}) → Future< void> -
fullPathForFilename(
String filename) → Future< String> -
getGpuLayers(
String filename, {int defaultValue = 0}) → Future< int> -
getModelsDirectory(
) → Future -
getModelsDirectoryPath(
) → Future< String> -
listDownloadedFilenames(
) → Future< Set< String> > -
loadCustomModels(
) → Future< List< EmbeddedGgufModel> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCustomModel(
String id) → Future< void> -
saveCustomModels(
List< EmbeddedGgufModel> models) → Future<void> -
saveGpuLayers(
String filename, int gpuLayers) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → EmbeddedModelManager
-
final