mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-03 16:17:16 +00:00
fix: message chain init
This commit is contained in:
@@ -97,7 +97,7 @@ class ResponseWrapper(stage.PipelineStage):
|
|||||||
reply_text = f'调用函数 {".".join(function_names)}...'
|
reply_text = f'调用函数 {".".join(function_names)}...'
|
||||||
|
|
||||||
query.resp_message_chain.append(
|
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']:
|
if query.pipeline_config['output']['misc']['track-function-calls']:
|
||||||
@@ -125,12 +125,12 @@ class ResponseWrapper(stage.PipelineStage):
|
|||||||
else:
|
else:
|
||||||
if event_ctx.event.reply is not None:
|
if event_ctx.event.reply is not None:
|
||||||
query.resp_message_chain.append(
|
query.resp_message_chain.append(
|
||||||
platform_message.MessageChain(event_ctx.event.reply)
|
platform_message.MessageChain(text=event_ctx.event.reply)
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
query.resp_message_chain.append(
|
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(
|
yield entities.StageProcessResult(
|
||||||
|
|||||||
Reference in New Issue
Block a user