@cloudflare/ai-chat@0.11.0
·
1 commit
to main
since this release
Minor Changes
-
#2071
9620b58Thanks @ben-reitz! - Make durable chat recovery unconditional forAIChatAgentandThink.Every chat turn now runs in a recovery fiber, including WebSocket, programmatic, retry, and continuation paths.
chatRecoveryacceptstrueor a configuration object;falseis no longer supported. Previously compiled JavaScript that still suppliesfalsesafely receives the default recovery configuration.To keep durable bookkeeping while preventing automatic inference after an interruption, return
{ continue: false }fromonChatRecovery(). Use durable cancellation, side-effect, or spend state in that hook and tunechatRecoverybudgets when retries must be bounded.