Skip to content

@cloudflare/voice@0.3.6

Choose a tag to compare

@github-actions github-actions released this 18 Aug 09:08
· 5 commits to main since this release
d424945

Patch Changes

  • #2083 48eeba7 Thanks @cjol! - Define VoiceTurnContext.messages as completed history before the current transcript for both text and audio turns, preventing duplicate user messages when following the documented prompt construction.

    Existing onTurn() implementations:

    • If you pass context.messages directly as the complete LLM input, append transcript exactly once.
    • If you already append transcript to context.messages, no change is required.
    • Direct getConversationHistory() calls inside onTurn() continue to include the current transcript.
  • #2004 0efd545 Thanks @cjol! - Pass the full keyterms array to Workers AI Flux and Nova-3 STT instead of only the first term.

  • #2049 ce0e608 Thanks @cjol! - Preserve spacing between streamed text segments separated by tool calls. Think messenger delivery and Voice now share the same boundary-aware text joining logic from agents/chat.

    Existing users must:

    • Replace imports of textDeltaFromStreamChunk() from @cloudflare/think/messengers with TextStreamCallback, passing it the complete structured stream events.
    • Upgrade to agents@0.21.0 when installing @cloudflare/think@0.16.0 or @cloudflare/voice@0.3.6; both now require agents >=0.20.2.
    • Update exact-text expectations if they relied on segments around tool calls being concatenated without a space.