add dingtalk file support, fix video/voice file to bailian (#1683)

* add dingtalk file support, fix video/voice file to bailian

* fix bailian files conversation

* 更新 bailianchatcmpl.py

Co-authored-by: Copilot <[email protected]>

* Update libs/dingtalk_api/api.py

Co-authored-by: Copilot <[email protected]>

* chore: bump langbot-plugin version to 0.1.3b1

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Junyan Qin <[email protected]>
This commit is contained in:
Bruce
2025-09-29 16:33:42 +08:00
committed by GitHub
co-authored by Copilot Junyan Qin
parent 72d701df3e
commit ea42579374
7 changed files with 262 additions and 2 deletions
+2
View File
@@ -41,6 +41,8 @@ class DingTalkMessageConverter(abstract_platform_adapter.AbstractMessageConverte
yiri_msg_list.append(platform_message.Plain(text=text_content))
if event.picture:
yiri_msg_list.append(platform_message.Image(base64=event.picture))
if event.file:
yiri_msg_list.append(platform_message.File(url=event.file, name=event.name))
if event.audio:
yiri_msg_list.append(platform_message.Voice(base64=event.audio))