genkit_flutter_gemma 0.4.0
genkit_flutter_gemma: ^0.4.0 copied to clipboard
Genkit Dart plugin for flutter_gemma - local on-device AI inference via Google Gemma models.
0.4.0 #
- Bump flutter_gemma dependency to ^1.0.0 (modular package split: core + opt-in engine/backend packages)
- No changes to the public Genkit plugin API —
getActiveModel/getActiveEmbeddersignatures are unchanged, so all existing model/embedder config options keep working - App setup change: flutter_gemma 1.0.0 makes inference engines and embedding backends opt-in. Consuming apps must now register them in
FlutterGemma.initialize()and add the relevant packages (flutter_gemma_litertlm,flutter_gemma_mediapipe,flutter_gemma_embeddings). See the updated example and README. - Update example app to register
LiteRtLmEngine,MediaPipeEngine, andLiteRtEmbeddingBackend - Drop the removed iOS-specific embedding tokenizer path (
iosPath) — flutter_gemma 0.15.2+ unified embedding on a single LiteRT C API path
0.3.1 #
- Bump flutter_gemma dependency to ^0.15.1 (LiteRT-LM 0.11.0, MTP speculative decoding for Gemma 4, multi-image input, Android GPU fix, desktop storage path fix)
- Add
enableSpeculativeDecodingconfig option for Gemma 4 E2B/E4B MTP toggle (null= model default,true/false= force on/off)
0.3.0 #
- Bump flutter_gemma dependency to ^0.14.2 (dart:ffi rewrite on desktop, ~5× faster cold start; fixes macOS
flutter testinstall_name_tool failure) - Add
maxFunctionBufferLengthconfig option for large tool-call argument payloads - Update
example/macos/Podfilepost_install for flutter_gemma 0.14.2 framework bundling
0.2.2 #
- Bump flutter_gemma dependency to ^0.13.2
- Update README: document Gemma 4 and Phi-4 support, clarify thinking mode availability
0.2.1 #
- Bump flutter_gemma dependency to ^0.13.1 (LiteRT-LM 0.10.0, Gemma 4 thinking mode fix)
0.2.0 #
- Breaking: Upgrade flutter_gemma dependency to ^0.13.0
- Breaking: System messages are now passed natively via
createChat(systemInstruction:)instead of being prepended to the first user message - Add
systemInstructionconfig option for explicit system-level instructions - Support
ModelFileType.litertlmfor LiteRT-LM models (Gemma 4) - Advertise
systemRole: truein Genkit model metadata - Throw on system-only requests (at least one user/model message required)
- Throw on system messages with non-text content parts
0.1.1 #
- Bump flutter_gemma dependency to ^0.12.8
- Add
toolChoiceconfig option ('auto', 'required', 'none') passed to model chat session - Support
ParallelFunctionCallResponse— multiple tool calls in a single model response - Add
latencyMsto ModelResponse for generation profiling - Fix
FakeEmbeddingModelcompatibility with flutter_gemma 0.12.8taskTypeparameter
0.1.0 #
- Initial release
- Genkit model provider wrapping flutter_gemma
- Text generation (blocking and streaming)
- Embeddings via FlutterGemmaEmbedder
- Multimodal input (images, audio)
- Function calling / tool use
- Thinking mode (DeepSeek-style reasoning)
- Configurable via
@Schema()-annotated options - Example app with Chat, Embeddings, Tools, Settings tabs