liquid_ai_leap 0.2.3
liquid_ai_leap: ^0.2.3 copied to clipboard
A Flutter plugin wrapper for the Liquid AI LEAP SDK. Provides on-device AI inference capabilities using Liquid Foundation Models (LFM) on iOS and Android.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.3 - 2026-01-08 #
0.2.0 - 2026-01-04 #
Unreleased #
0.1.0 2025-01-XX #
Added #
- Initial release of the Liquid AI LEAP Flutter plugin
- Core model loading and management
LiquidAiLeap.loadModel()- Download and load modelsLiquidAiLeap.downloadModel()- Download models without loadingLiquidAiLeap.isModelCached()- Check cache statusLiquidAiLeap.deleteModel()- Remove cached models
- Conversation management
ModelRunner.createConversation()- Create new conversationsModelRunner.createConversationFromHistory()- Restore from historyConversation.generateResponse()- Streaming text generation
- Message types
ChatMessage- User, assistant, system, and tool messagesChatMessageContent- Text, image, and audio content types
- Response types
ChunkResponse- Streaming text chunksReasoningChunkResponse- Reasoning model thinkingAudioSampleResponse- Audio output samplesFunctionCallResponse- Function call requestsCompleteResponse- Generation completion with stats
- Generation options
- Temperature control
- Top-P and Min-P sampling
- Repetition penalty
- Max tokens limit
- JSON schema constraints
- Function calling support
LeapFunction- Function definitionsLeapFunctionParameter- Parameter specificationsLeapFunctionParameterType- Type system (string, number, etc.)
- Exception hierarchy
LeapException- Base exception typeLeapNetworkException- Network errorsLeapModelNotFoundException- Model not foundLeapInsufficientMemoryException- Memory errorsLeapGenerationException- Generation failures
- Platform implementations
- iOS via Swift Package Manager
- Android via Maven
- Utility scripts
dependencies.sh- Manage native SDK dependenciespublish.sh- Automated publishing workflow
Platform Requirements #
- iOS: 15.0+, Xcode 15.0+, Swift 5.9+
- Android: API 31+ (Android 12), arm64-v8a
Known Issues #
- Native SDK integration is scaffolded but requires LeapSDK availability
- iOS simulator support may be limited