LocalLlmDatasource class

Web stub for LocalLlmDatasource.

llama_cpp_dart is native-only (no JS / WASM build), so on web the Local provider is hidden from the AI settings segmented control via kIsWeb. This stub is a compile-time safety net for any stray reference that survives the kIsWeb guard.

Implemented types

Constructors

LocalLlmDatasource()

Properties

activeModelId → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteModel(String modelId) → Future<void>
dispose() → Future<void>
downloadModel(String modelId, {bool allowMetered = false, void onProgress(double progress)?}) → Future<void>
isConfigured() → Future<bool>
Whether the provider is configured (API key stored or OAuth signed in).
override
isModelDownloaded(String modelId) → Future<bool>
listModels() → Future<List<AiModel>>
Fetch available models from the provider's API.
override
modelFileSizeBytes(String modelId) → Future<int?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage({required String systemPrompt, required List<Map<String, String>> messages, int maxTokens = 2048}) → Future<String>
Send messages and return the complete assistant response.
override
setActiveModel(String modelId) → Future<void>
streamMessage({required String systemPrompt, required List<Map<String, String>> messages, int maxTokens = 2048}) → Stream<String>
Stream a response, yielding text deltas as they arrive.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited