llm_dart 0.1.1
llm_dart: ^0.1.1 copied to clipboard
A modular Dart library for AI provider interactions with unified interface for OpenAI, Anthropic, Google, DeepSeek, Ollama, xAI, Groq, ElevenLabs and more.
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.1.1 2025-6-8 #
Changed #
- Documentation: Updated README.md to reflect standalone library status
- Added pub.flutter-io.cn package badge and link (https://pub.flutter-io.cn/packages/llm_dart)
- Simplified installation instructions (removed unnecessary dio dependency mention)
- Updated example links to point to current repository instead of yumcha monorepo
0.1.0 2025-6-8 #
Added #
- Initial release of LLM Dart library
- Multi-provider support for AI interactions
- Unified interface for OpenAI, Anthropic, Google, DeepSeek, Ollama, xAI, Phind, Groq, and ElevenLabs
- Builder pattern API for easy configuration
- Streaming support for real-time responses
- Tool calling capabilities for function execution
- Structured output with JSON schema support
- Comprehensive error handling with specific error types
- Provider registry system for extensibility
- Capability-based design for type safety
Supported Providers
- OpenAI: GPT models with reasoning support
- Anthropic: Claude models with thinking capabilities
- Google: Gemini models
- DeepSeek: DeepSeek reasoning models
- Ollama: Local model support
- xAI: Grok models
- Phind: Phind models
- Groq: Fast inference
- ElevenLabs: Text-to-Speech and Speech-to-Text
Features
- Chat completion with multiple providers
- Real-time streaming responses
- Function/tool calling
- Structured JSON output
- Provider-specific extensions
- Custom provider registration
- Comprehensive examples and documentation
Examples
- Basic usage examples for all providers
- Streaming examples
- Tool calling examples
- Custom provider implementation
- Advanced configuration examples
- ElevenLabs TTS/STT examples
Technical Details #
- Built with Dart 3.0+ support
- Flutter 3.8+ compatibility
- Uses Dio for HTTP requests
- Comprehensive error handling
- Type-safe interfaces
- Modular architecture
Documentation #
- Complete API documentation
- Extensive examples directory
- Setup and configuration guides
- Best practices documentation
- Provider-specific guides