ai_broker 0.2.1 copy "ai_broker: ^0.2.1" to clipboard
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: stripCodeFence helper 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.

1
likes
160
points
24
downloads

Documentation

API reference

Publisher

verified publisherdev-cetera.com

Weekly Downloads

Provider-agnostic Dart abstraction over Claude, OpenAI, and Gemini. One interface for listing models, completions, multi-turn chat, and streaming responses.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #llm #openai #anthropic #gemini

Funding

Consider supporting this project:

buymeacoffee.com
www.patreon.com
github.com

License

MIT (license)

Dependencies

http, meta

More

Packages that depend on ai_broker