Skip to main content

prism_ai 0.6.0 copy "prism_ai: ^0.6.0" to clipboard
prism_ai: ^0.6.0 copied to clipboard

Lean, provider-agnostic streaming client for AI chat completions — OpenAI, Ollama, Groq, DeepSeek and more, with typed events.

Changelog #

0.3.0 #

  • New widget: AiChatView + AiChatController — a ready-made streaming chat UI with user/assistant bubbles, typing indicator, auto-scroll, and an optional input field wired to your client via onSendMessage.

0.2.0 #

  • New provider: AnthropicStreamClient — Anthropic Messages API with streaming text deltas, tool-use blocks (input_json_delta assembly), and usage tracking (message_start/message_delta)
  • New provider: GeminiStreamClient — Gemini streamGenerateContent (SSE) with usageMetadata reporting
  • New AiStreamClient interface so providers are interchangeable
  • New AiChatMessage constructors: .system(), .user(), .assistant()

0.1.0 #

  • Initial release: SSE parser, OpenAI-compatible streaming client with typed events (AiTextDelta / AiToolCall / AiDone / AiError), auth and custom headers. Verified against a real local SSE server.
0
likes
145
points
180
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Lean, provider-agnostic streaming client for AI chat completions — OpenAI, Ollama, Groq, DeepSeek and more, with typed events.

Homepage

License

MIT (license)

Dependencies

flutter, http, prism_markdown

More

Packages that depend on prism_ai