mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-14 09:11:54 +00:00
fix(weixin): correct send_image_file parameter name to match base class
The send_image_file method in WeixinAdapter used 'path' as parameter name, but BasePlatformAdapter and gateway callers use 'image_path'. This mismatch caused image sending to fail when called through the gateway's extract_media path. Changed parameter name from 'path' to 'image_path' to match the interface defined in base.py and the calls in gateway/run.py.
This commit is contained in:
parent
5d929caa59
commit
902d6b97d6
1 changed files with 2 additions and 2 deletions
|
|
@ -1542,12 +1542,12 @@ class WeixinAdapter(BasePlatformAdapter):
|
|||
async def send_image_file(
|
||||
self,
|
||||
chat_id: str,
|
||||
path: str,
|
||||
image_path: str,
|
||||
caption: str = "",
|
||||
reply_to: Optional[str] = None,
|
||||
metadata: Optional[Dict[str, Any]] = None,
|
||||
) -> SendResult:
|
||||
return await self.send_document(chat_id, file_path=path, caption=caption, metadata=metadata)
|
||||
return await self.send_document(chat_id, file_path=image_path, caption=caption, metadata=metadata)
|
||||
|
||||
async def send_document(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue