ai_broker 0.2.1
ai_broker: ^0.2.1 copied to clipboard
Provider-agnostic Dart abstraction over Claude, OpenAI, and Gemini. One interface for listing models, completions, multi-turn chat, and streaming responses.
Changelog #
0.2.1 #
- feat:
stripCodeFencehelper for stripping leading/trailing markdown code fences from model output, exported from the package barrel.
0.2.0 #
Initial release. AiBroker interface (listModels, complete, chat,
stream) with three implementations: OpenAiBroker, AnthropicBroker,
GeminiBroker. AiBrokerRegistry for runtime provider lookup.
KeyResolver (EnvKeyResolver, MapKeyResolver) for pluggable key
sourcing. Shared SSE decoder and retry-with-backoff helper.