mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
Address Sourcery AI review feedback: the image-handling logic was duplicated for ImageContent and EmbeddedResource cases. Changes: - Extract _handle_image_content() helper function - Consolidate image caching, result appending, and yielding logic - Reduce code duplication and improve maintainability