Skip to content

v3.1.0

Latest

Choose a tag to compare

@kauffinger kauffinger released this 12 Nov 07:37
5aa7094
  • 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() and stopAgent() are gone from Chats\Show. The send and stop JavaScript actions in show.blade.php replace them, and runAgent() reads the message from pendingMessage
  • The UpdateStreamDataFromAiEvent action is removed. Chats\Show streams $event->toArray() instead
  • The markdownProcessor Alpine component is renamed to assistantMessage

Full Changelog: v3.0.0...v3.1.0