Repository navigation
@tanstack/ai@0.66.0
·
191 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
-
#1658
f687c54- Breaking:chat({ stream: false })andstreamToText()now return aChatResultwithtextandchunks, not a string. The chunks keep the tool calls and interrupt outcomes that the string lost. To migrate, changeconst text = await chat({ stream: false })toconst { text } = await chat({ stream: false }).Add a JSON transport for hosts that cannot stream a response. On the server,
toJsonResponse()sends a run as one JSON body, andresumeJsonResponse()sends the rest of a durable run. On the client, thefetchJson()connection adapter reads that body and asks again until the run is done. Each framework package re-exportsfetchJson.