Repository navigation
chat@4.45.0
Minor Changes
-
d0ff1dc: feat: stream model reasoning with
reasoningchunksStreamChunkhas a newreasoningtype,{ type: "reasoning", text }, for deltas of the model's reasoning. Liketask_updateandplan_update,reasoningchunks don't count toward the posted message's text.The Web adapter streams them to
useChatas reasoning parts, or as AG-UIREASONING_*events withprotocol: "ag-ui". Consecutivereasoningchunks fill one part, and text, a new task, or the first plan chunk closes it. Areasoningchunk also closes the current text part, somessage.partskeeps reasoning and text in the order the handler yielded them.thread.post()passesreasoningchunks only to adapters that set the new optionalsupportsReasoningChunksproperty onAdaptertotrue, which the Web adapter does. For every other adapter it removes them from the stream, so reasoning is never posted to a chat platform. The Slack adapter'sstream()also skips them when called directly instead of forwarding them to Slack's streaming API, which has no reasoning chunk type. A rejected chunk would also turn off task and plan chunks for the rest of the stream.Reasoning events in an AI SDK
fullStreamor a TanStack AI stream are still skipped. Onlyreasoningchunks you yield are streamed.
Patch Changes
-
7012331: Quote every line of a Markdown block quote in the Discord, Slack, and Google Chat converters. Each converter added the
>prefix only to the first line of each block inside a quote, so later lines, list items, and code block lines fell out of the quote, and quoted paragraphs ran together. Slack hit this only onresponse_urlreplies. Now every line gets the prefix, and a quoted blank line separates the blocks. On Discord, which only quotes a line that starts with>, blank quoted lines keep the trailing space.The rendering now lives in a new
renderBlockquotemethod onBaseFormatConverter, which the Teams converter also uses. It skips a quote child that renders to nothing, such as a link definition, so a quote no longer starts or ends with a blank quoted line. -
Updated dependencies [09cb11e]
-
Updated dependencies [50c1116]
-
Updated dependencies [0801548]
-
Updated dependencies [e5e5206]
-
Updated dependencies [a6ec788]
-
Updated dependencies [6e0bba3]
-
Updated dependencies [0471806]
- @chat-adapter/catalog@4.45.0