mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-03 12:34:37 +00:00
fix: be adapter.py func reply_message_chunk agr message_id alter bot_message,and in pipelinemgr.py respback.py agr alter
This commit is contained in:
@@ -94,10 +94,9 @@ class RuntimePipeline:
|
||||
):
|
||||
result.user_notice.insert(0, platform_message.At(query.message_event.sender.id))
|
||||
if await query.adapter.is_stream_output_supported():
|
||||
print(query.resp_messages[-1])
|
||||
await query.adapter.reply_message_chunk(
|
||||
message_source=query.message_event,
|
||||
message_id=str(query.resp_messages[-1].resp_message_id),
|
||||
bot_message=query.resp_messages[-1],
|
||||
message=result.user_notice,
|
||||
quote_origin=query.pipeline_config['output']['misc']['quote-origin'],
|
||||
is_final=[msg.is_final for msg in query.resp_messages][0]
|
||||
|
||||
@@ -41,10 +41,9 @@ class SendResponseBackStage(stage.PipelineStage):
|
||||
# TODO 命令与流式的兼容性问题
|
||||
if await query.adapter.is_stream_output_supported():
|
||||
is_final = [msg.is_final for msg in query.resp_messages][0]
|
||||
print(query.resp_messages[-1])
|
||||
await query.adapter.reply_message_chunk(
|
||||
message_source=query.message_event,
|
||||
message_id=query.resp_messages[-1].resp_message_id,
|
||||
bot_message=query.resp_messages[-1],
|
||||
message=query.resp_message_chain[-1],
|
||||
quote_origin=quote_origin,
|
||||
is_final=is_final,
|
||||
|
||||
Reference in New Issue
Block a user