UnsupportedBackend class
The web (and any platform without a native library).
- Implemented types
Constructors
- UnsupportedBackend()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isLoaded
→ Future<
bool> -
no setteroverride
- isSupported → bool
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyTemplate(
List< ({String content, String role})> messages, {String? template, bool addAssistant = true}) → Future<String> -
Formats
messages(role / content pairs) withtemplate(null = the model's own).override -
countTokens(
String text, {bool addSpecial = false}) → Future< int> -
override
-
embed(
String text) → Future< List< double> > -
override
-
facts(
) → Future< RawFacts> -
override
-
generate(
String prompt, RawSampling sampling, {String? grammar}) → Stream< Object> -
Streams UTF-8 pieces; the last event is a RawDone (as a
Stream<Object>:Stringpieces, thenRawDone).override -
labelLogprobs(
String prompt, List< String> labels) → Future<List< double> > -
override
-
load(
String path, {int contextSize = 0, int gpuLayers = -1, int threads = 0, bool embeddings = false}) → Future< void> -
The backend's own load (desktop FFI); mobile backends use the 1.1
loadModelchannel call.override -
meta(
String key) → Future< String?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stop(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unload(
) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited