fix: in the adapter.py func reply_message_chunk agr message_id alter bot_message,and in dingtalk.py lark.py telegram.py webchat.py agr alter

This commit is contained in:
Dong_master
2025-08-12 11:19:27 +08:00
parent 6d35fc408c
commit 27cee0a4e1
5 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ class WebChatAdapter(msadapter.MessagePlatformAdapter):
async def reply_message_chunk(
self,
message_source: platform_events.MessageEvent,
message_id: int,
bot_message,
message: platform_message.MessageChain,
quote_origin: bool = False,
is_final: bool = False,
@@ -146,7 +146,7 @@ class WebChatAdapter(msadapter.MessagePlatformAdapter):
# queue = self.webchat_person_session.resp_queues[message_source.message_chain.message_id]
# elif isinstance(message_source, platform_events.GroupMessage):
# queue = self.webchat_group_session.resp_queues[message_source.message_chain.message_id]
if is_final:
if is_final and bot_message.tool_calls is None:
message_data.is_final = True
# print(message_data)
await queue.put(message_data)