Skip to content

v0.3.61: Prompt Preprocessor

Choose a tag to compare

@ziggle-dev ziggle-dev released this 30 Jul 05:19
· 49 commits to main since this release
360e6f6

What's Changed

Added

  • Prompt Preprocessor: Smart detection and mitigation for multi-tool call scenarios
    • Detects patterns that would trigger multiple TTS tool calls
    • Automatically modifies prompts to encourage sequential single calls
    • Prevents Grok API "trailing characters" JSON validation errors
    • Pattern detection for conversations, multiple voices, and sequential actions

Improved

  • Multi-Voice Conversations: Now work reliably with TTS tools
    • Conversations between multiple voices (Clanker, Rachael, Adam) execute successfully
    • Each voice speaks sequentially without JSON parsing errors
    • Enhanced system prompts guide the model to avoid problematic patterns

Developer Notes

  • The prompt preprocessor helps work around Grok API's strict JSON validation
  • Multi-tool calls now execute sequentially (with pauses) rather than failing
  • This is a workaround for server-side validation that rejects concatenated JSON

Full Changelog: v0.3.6...v0.3.61