From 621f1301b347b4986a764392b245db42c972f74d Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 11 Aug 2025 17:24:57 +0800 Subject: [PATCH] fix: message chain init --- pkg/pipeline/wrapper/wrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/pipeline/wrapper/wrapper.py b/pkg/pipeline/wrapper/wrapper.py index f3323622..439595e9 100644 --- a/pkg/pipeline/wrapper/wrapper.py +++ b/pkg/pipeline/wrapper/wrapper.py @@ -97,7 +97,7 @@ class ResponseWrapper(stage.PipelineStage): reply_text = f'调用函数 {".".join(function_names)}...' query.resp_message_chain.append( - platform_message.MessageChain([platform_message.Plain(reply_text)]) + platform_message.MessageChain([platform_message.Plain(text=reply_text)]) ) if query.pipeline_config['output']['misc']['track-function-calls']: @@ -125,12 +125,12 @@ class ResponseWrapper(stage.PipelineStage): else: if event_ctx.event.reply is not None: query.resp_message_chain.append( - platform_message.MessageChain(event_ctx.event.reply) + platform_message.MessageChain(text=event_ctx.event.reply) ) else: query.resp_message_chain.append( - platform_message.MessageChain([platform_message.Plain(reply_text)]) + platform_message.MessageChain([platform_message.Plain(text=reply_text)]) ) yield entities.StageProcessResult(