mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
fix(gateway,tools): add missing .3gp and .webm to video extension sets
MEDIA_DELIVERY_EXTS in gateway/platforms/base.py omitted .3gp, causing MEDIA: tags with .3gp files to leak as plain text instead of being extracted for native video delivery. _VIDEO_EXTS in tools/send_message_tool.py and _MIGRATION_VIDEO_EXTS in the Feishu adapter omitted .webm, causing .webm files to be classified as documents instead of video on Telegram and other platforms. Both extensions are already present in every gateway-side _VIDEO_EXTS definition (run.py, kanban_watchers.py, weixin.py, base.py local). Closes #71621, Closes #71603
This commit is contained in:
parent
384b0a0b5b
commit
0ec1b9f7fa
3 changed files with 3 additions and 3 deletions
|
|
@ -1478,7 +1478,7 @@ MEDIA_DELIVERY_EXTS: Tuple[str, ...] = (
|
|||
# Images (embed inline)
|
||||
".png", ".jpg", ".jpeg", ".gif", ".webp", ".bmp", ".tiff", ".svg",
|
||||
# Video (embed inline where supported)
|
||||
".mp4", ".mov", ".avi", ".mkv", ".webm",
|
||||
".mp4", ".mov", ".avi", ".mkv", ".webm", ".3gp",
|
||||
# Audio (delivered as voice/audio where supported)
|
||||
".mp3", ".wav", ".ogg", ".opus", ".m4a", ".flac",
|
||||
# Documents (uploaded as file attachments)
|
||||
|
|
|
|||
|
|
@ -5447,7 +5447,7 @@ def _qr_register_inner(
|
|||
# ──────────────────────────────────────────────────────────────────────────
|
||||
|
||||
_MIGRATION_IMAGE_EXTS = {".jpg", ".jpeg", ".png", ".webp", ".gif"}
|
||||
_MIGRATION_VIDEO_EXTS = {".mp4", ".mov", ".avi", ".mkv", ".3gp"}
|
||||
_MIGRATION_VIDEO_EXTS = {".mp4", ".mov", ".avi", ".mkv", ".webm", ".3gp"}
|
||||
_MIGRATION_AUDIO_EXTS = {".ogg", ".opus", ".mp3", ".wav", ".m4a", ".flac"}
|
||||
_MIGRATION_VOICE_EXTS = {".ogg", ".opus"}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ _EMAIL_TARGET_RE = re.compile(r"^\s*[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2
|
|||
# never read. Map the exceptions so the error guidance is actually actionable.
|
||||
_HOME_CHANNEL_ENV_OVERRIDES = {"email": "EMAIL_HOME_ADDRESS"}
|
||||
_IMAGE_EXTS = {".jpg", ".jpeg", ".png", ".webp", ".gif"}
|
||||
_VIDEO_EXTS = {".mp4", ".mov", ".avi", ".mkv", ".3gp"}
|
||||
_VIDEO_EXTS = {".mp4", ".mov", ".avi", ".mkv", ".webm", ".3gp"}
|
||||
_AUDIO_EXTS = {".ogg", ".opus", ".mp3", ".wav", ".m4a", ".flac"}
|
||||
_VOICE_EXTS = {".ogg", ".opus"}
|
||||
# Telegram's Bot API sendAudio only accepts MP3 / M4A. Other audio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue