Repository navigation
- refactor: stream ai sdk events straight to the browser (#8)
The chat page now streams the AI SDK's events to the browser as they arrive, instead of resending the whole reply with every event.
New
- Sending a message is one request, and the message shows right away
- Stopping a reply needs no request
- The stored and the streaming reply share one Alpine component,
assistantMessage
Fixed
- The stop button did nothing after a tool approval
Changed
If you built on the kit's chat page:
sendMessage()andstopAgent()are gone fromChats\Show. ThesendandstopJavaScript actions inshow.blade.phpreplace them, andrunAgent()reads the message frompendingMessage- The
UpdateStreamDataFromAiEventaction is removed.Chats\Showstreams$event->toArray()instead - The
markdownProcessorAlpine component is renamed toassistantMessage
Full Changelog: v3.0.0...v3.1.0