mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-15 09:21:36 +00:00
fix(platform): add .xls, .doc, .ppt to SUPPORTED_DOCUMENT_TYPES
Old Office formats (.xls, .doc, .ppt) were missing from the SUPPORTED_DOCUMENT_TYPES dict in gateway/platforms/base.py while their newer counterparts (.xlsx, .docx, .pptx) were included. Sending an .xls file via Telegram triggers 'Unsupported document type' and the file is silently dropped instead of being cached and forwarded to the agent. Add the three legacy MIME types so these files are handled the same way as their modern equivalents.
This commit is contained in:
parent
4fd9397ae3
commit
f82cb48120
1 changed files with 3 additions and 0 deletions
|
|
@ -1128,8 +1128,11 @@ SUPPORTED_DOCUMENT_TYPES = {
|
|||
".ini": "text/plain",
|
||||
".cfg": "text/plain",
|
||||
".zip": "application/zip",
|
||||
".doc": "application/msword",
|
||||
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
".xls": "application/vnd.ms-excel",
|
||||
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
".ppt": "application/vnd.ms-powerpoint",
|
||||
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
||||
".ts": "text/plain",
|
||||
".py": "text/plain",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue