mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 14:31:00 +00:00
perf: 忽略空的 assistant content 消息 (#795)
This commit is contained in:
@@ -71,7 +71,7 @@ class ResponseWrapper(stage.PipelineStage):
|
|||||||
|
|
||||||
reply_text = ''
|
reply_text = ''
|
||||||
|
|
||||||
if result.content is not None: # 有内容
|
if result.content: # 有内容
|
||||||
reply_text = str(result.get_content_mirai_message_chain())
|
reply_text = str(result.get_content_mirai_message_chain())
|
||||||
|
|
||||||
# ============= 触发插件事件 ===============
|
# ============= 触发插件事件 ===============
|
||||||
|
|||||||
Reference in New Issue
Block a user