feat(wecom): add image and voice message support for callback adapter#8312
Closed
chqchshj wants to merge 2 commits into
Closed
feat(wecom): add image and voice message support for callback adapter#8312chqchshj wants to merge 2 commits into
chqchshj wants to merge 2 commits into
Conversation
added 2 commits
April 12, 2026 18:34
- Expand msg_type whitelist to include 'image' and 'voice' - Convert _build_event to async to support media downloads - Add _download_image: fetch via media/get API with PicUrl fallback - Add _download_voice: fetch AMR audio via media/get API - Add _detect_image_ext helper for magic-byte format detection - Add .amr and .silk to SUPPORTED_FORMATS for WeChat audio - Add bidirectional STT fallback: local <-> Groq
The _build_event method was changed to async but the tests were not updated to use await, causing 'coroutine object has no attribute source' failures in CI.
3 tasks
Contributor
Author
|
Closing this out for now from my side to reduce stale/open Hermes Agent PRs. Thanks for the review and context. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
wecom_callback.py
transcription_tools.py
groq (fallback)Motivation
WeCom callback adapter currently only handles text messages. Users sending images or voice messages get silently ignored. This adds full media support with automatic STT transcription for voice.