mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-01 01:10:21 +08:00
* feat: show quoted message content in group chat context Include Reply component content in _format_message so the LLM can see what message was quoted when someone replies to the bot. - Add Reply import - Handle Reply in _format_message with message_str or chain fallback - Add _describe_chain helper for non-text quoted content (images, etc.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: use isinstance, add truncation, unify language to English - Replace string class-name checks with isinstance() for robustness - Add _truncate_reply_text to prevent long quoted content inflating context - Unify markers to English ([Image], [Voice], [Quote] etc.) - Import Record, Video, File for isinstance checks Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: add Forward, AtAll, Face to _describe_chain for completeness Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * style: format group chat context --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Soulter <905617992@qq.com>