prism_ai 0.6.0
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 viaonSendMessage.
0.2.0 #
- New provider:
AnthropicStreamClient— Anthropic Messages API with streaming text deltas, tool-use blocks (input_json_deltaassembly), and usage tracking (message_start/message_delta) - New provider:
GeminiStreamClient— GeministreamGenerateContent(SSE) withusageMetadatareporting - New
AiStreamClientinterface so providers are interchangeable - New
AiChatMessageconstructors:.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.