mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
The _is_voice_content_type() heuristic matched audio file extensions (.wav, .mp3, .ogg, etc.) even when the QQ Bot API explicitly reported content_type='file'. This caused files sent via QQ's file-transfer feature to be routed through the speech-to-text pipeline instead of being saved as regular attachments. The QQ Bot API already distinguishes voice messages (content_type= 'voice') from file uploads (content_type='file'), so filename-based extension sniffing is unnecessary and harmful. Removed the _VOICE_EXTENSIONS fallback; now only content_type is checked. Closes #XXXX |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adapter.py | ||
| chunked_upload.py | ||
| constants.py | ||
| crypto.py | ||
| keyboards.py | ||
| onboard.py | ||
| utils.py | ||