mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-09 14:28:01 -05:00
- Extract message conversion into dedicated `toMessages` helper method - Add proper role handling for system, user, and assistant messages - Prepend system content to first user message per Anthropic format - Enforce user/assistant message alternation with placeholder messages - Skip empty messages during conversion processing - Concatenate multiple text blocks in response output - Add validation for empty message arrays before sending - Handle edge case when only system content is provided