- Introduced pre-compiled regex patterns across various components, including streaming_helper, markdown_stream_formatter, and assistant_message_widget, to enhance performance during image extraction and markdown formatting. - Updated the AssistantMessageWidget to utilize these optimized patterns for TTS sanitization and image processing, reducing unnecessary regex evaluations. - Improved overall efficiency in handling markdown content by leveraging pre-compiled patterns for common markdown syntax detection.
73 KiB
73 KiB