FlutterGemmaWeb class
- Inheritance
-
- Object
- PlatformInterface
- FlutterGemmaPlugin
- FlutterGemmaWeb
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isInitialized
→ Future<
bool> -
no setteroverride
-
isLoaded
→ Future<
bool> -
no setteroverride
- llmInference ↔ LlmInference?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getChatResponse(
{required Iterable< Message> messages, int chatContextLength = 3}) → Future<String?> -
inherited
-
getChatResponseAsync(
{required Iterable< Message> messages, int chatContextLength = 3}) → Stream<String?> -
inherited
-
getResponse(
{required String prompt}) → Future< String?> -
override
-
getResponseAsync(
{required String prompt}) → Stream< String?> -
override
-
init(
{int maxTokens = 1024, double temperature = 1.0, int randomSeed = 1, int topK = 1, int? numOfSupportedLoraRanks, List< int> ? supportedLoraRanks, String? loraPath}) → Future<void> -
override
-
loadAssetModel(
{required String fullPath}) → Future< void> -
override
-
loadAssetModelWithProgress(
{required String fullPath}) → Stream< int> -
override
-
loadNetworkModel(
{required String url}) → Future< void> -
override
-
loadNetworkModelWithProgress(
{required String url}) → Stream< int> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
streamPartialResults(
dynamic partialResults, bool complete) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void