-
Notifications
You must be signed in to change notification settings - Fork 0
Changelog
Amayyas edited this page Jul 8, 2026
·
5 revisions
All notable changes to Flutter AI SDK are documented here.
-
Prompt caching -
AIConfig.promptCaching(PromptCaching, TTL 5 min / 1 h) :cache_controlexplicite chez Anthropic ; compteurs de cache parsés partout (Usage.cachedTokens, nouveauUsage.cacheWriteTokens) -
Documents -
DocumentContentfonctionne sur tous les providers cloud : sources URL chez Anthropic, blocsfilebase64 chez OpenAI
-
Structured outputs -
ResponseFormat.json(schema: ...)uses each provider's native guaranteed-schema mechanism (OpenAIjson_schemawith opt-instrict, Anthropicoutput_config.format, GeminiresponseJsonSchema, Ollama schema format) -
Token counting -
FlutterAI.countTokens({message})andBaseProvider.countTokens: exact server-side counts on Anthropic and Google AI, local estimation for OpenAI/Ollama
-
Architecture - full restructuring into one-class-per-file modules:
-
config/,models/content/,models/tools/split up - One folder per provider with a dedicated wire-format mapper class
-
BaseProviderowns the shared streaming loop (template method) - New
ProviderRegistryfactory (supports custom provider registration)
-
-
Tool Runner - automatic agentic tool-calling loop (
ToolRunner,ExecutableTool): parallel execution, error feedback, iteration budget - Ollama provider - run local models (Llama, Qwen, Gemma...) with streaming, tools, JSON mode and vision; no API key required
- Anthropic - consecutive same-role messages are merged (required for parallel tool results)
- Dependencies upgraded for Flutter 3.44
-
Updated default models to current generations:
- OpenAI:
gpt-5.5(wasgpt-4-turbo) - Anthropic:
claude-opus-4-8(wasclaude-3-5-sonnet-latest) - Google AI:
gemini-3.5-flash(wasgemini-1.5-pro)
- OpenAI:
-
Updated model context limits in
ModelContextLimits(GPT-5.x, Claude 4/5, Gemini 3.x) -
Anthropic provider:
- Never sends
temperatureandtop_ptogether (rejected by Claude 4+) - Maps the
refusalandmodel_context_window_exceededstop reasons
- Never sends
- Documentation (README + wiki) updated to current model IDs
-
Dependencies upgraded (
mime2.x,rxdart0.28,flutter_lints6)
First stable release of Flutter AI SDK!
- Unified API - Single interface for multiple AI providers
-
Multiple Providers
- OpenAI (GPT-4, GPT-3.5, GPT-4-turbo, GPT-4o)
- Anthropic (Claude 3 Opus, Sonnet, Haiku)
- Google AI (Gemini Pro, Gemini 1.5)
- Streaming Support - Real-time response streaming with chunk events
- Context Management - Automatic conversation history and memory
-
Multimodal Support
- Text content
- Image content (URL, bytes, base64)
- Audio content (OpenAI, Google AI)
- Document content
- Function Calling - Tool/function support for all providers
- Type Safety - Full Dart type safety with null safety
-
Error Handling - Comprehensive error types:
AIAuthenticationErrorAIRateLimitErrorAIContextLengthErrorAIContentFilterErrorAINetworkErrorAIServerError- And more...
- Token Management - Token counting and estimation
- Configuration - Comprehensive configuration options
- Complete wiki documentation
- API reference
- Usage examples
- Provider guides
Future releases will follow this format:
- New features
- Changes to existing functionality
- Features to be removed in future versions
- Removed features
- Bug fixes
- Security fixes
This project follows Semantic Versioning:
- MAJOR (X.0.0): Incompatible API changes
- MINOR (0.X.0): New functionality (backwards compatible)
- PATCH (0.0.X): Bug fixes (backwards compatible)
When upgrading between major versions, check the Migration Guide for breaking changes and how to update your code.
Getting Started
Core Concepts
Advanced Features
API Reference
Examples
Other