flutter_ai_sdk 1.2.0 copy "flutter_ai_sdk: ^1.2.0" to clipboard
flutter_ai_sdk: ^1.2.0 copied to clipboard

A unified wrapper for AI APIs (OpenAI, Anthropic, Google AI, Ollama) with streaming, tool calling, context management, and multimodal support.

Changelog #

All notable changes to Flutter AI SDK are documented here.

1.2.0 - 2026-07-07 #

Architecture overhaul & new features #

  • Architecture: full restructuring into one-class-per-file modules — config/, models/content/ (sealed hierarchy as part files), models/tools/; one folder per provider with a dedicated wire-format mapper; shared streaming loop in BaseProvider (template method); new ProviderRegistry factory supporting custom provider registration. The public API is unchanged.
  • Tool Runner: automatic agentic tool-calling loop (ToolRunner, ExecutableTool) — parallel tool execution, error feedback to the model, iteration budget, observability callbacks.
  • Ollama provider: run local models (Llama, Qwen, Gemma...) with streaming (NDJSON), tools, JSON mode and vision; no API key required.
  • Anthropic: consecutive same-role messages are merged, as required by the API's role alternation (fixes parallel tool results).
  • Dependencies upgraded for Flutter 3.44.

1.1.0 - 2026-07-06 #

Model refresh #

  • Default models updated to current generations: gpt-5.5, claude-opus-4-8, gemini-3.5-flash.
  • Model context limits updated (GPT-5.x, Claude 4/5, Gemini 3.x).
  • Anthropic provider: never sends temperature and top_p together (rejected by Claude 4+); maps the refusal and model_context_window_exceeded stop reasons.
  • Providers can receive an injected HTTP client; FlutterAI accepts a custom provider. Unit tests for all providers and a CI workflow added.
  • Dependencies upgraded (mime 2.x, rxdart 0.28, flutter_lints 6).

1.0.0 - 2025-11-30 #

Initial release #

  • Unified API for OpenAI, Anthropic and Google AI.
  • Streaming with chunk events, context management and memory.
  • Multimodal content (text, images, audio, documents).
  • Function calling for all providers, typed error handling, token estimation.
0
likes
0
points
172
downloads

Publisher

unverified uploader

Weekly Downloads

A unified wrapper for AI APIs (OpenAI, Anthropic, Google AI, Ollama) with streaming, tool calling, context management, and multimodal support.

Repository (GitHub)
View/report issues

Topics

#ai #llm #openai #anthropic #ollama

License

unknown (license)

Dependencies

collection, dio, equatable, flutter, http, json_annotation, logger, meta, mime, path, retry, rxdart, uuid

More

Packages that depend on flutter_ai_sdk