MnnllmPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- MnnllmPlatform
- Implementers
Constructors
- MnnllmPlatform()
- Constructs a MnnllmPlatform.
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
-
destroyLLM(
) → Future< int?> -
download(
String modelId) → Future< String?> -
finalAnswer(
) → Future< String?> -
generateAnswer(
String input, {bool stream = false}) → Future< void> -
getConfig(
) → Future< String?> -
getDownloaderProvider(
) → Future< String?> -
getTokens(
) → Future< String?> -
initModel(
String modelId, String modelName, String modelDir, String sessionId, bool keepHistory) → Future< int?> -
isGenerateFinished(
) → Future< int?> -
modelInitState(
) → Future< int?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onListenGeneration(
dynamic onData, dynamic onError) → void -
performance(
) → Future< String?> -
resetLLM(
) → Future< int?> -
setConfig(
String config) → Future< int?> -
setDownloadProvider(
String repo) → Future< int?> -
setMaxTokens(
int maxTokens) → Future< int?> -
setSystemPrompt(
String systemPrompt) → Future< int?> -
setThinking(
String modelName, bool think) → Future< int?> -
stopGenerate(
) → Future< int?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MnnllmPlatform
-
The default instance of MnnllmPlatform to use.
getter/setter pair