fix(pipeline): handle empty longtext response chain

This commit is contained in:
huanghuoguoguo
2026-05-16 11:04:04 +08:00
parent b251fc4b89
commit 4a60bdb6b6
2 changed files with 43 additions and 0 deletions

View File

@@ -76,6 +76,10 @@ class LongTextProcessStage(stage.PipelineStage):
self.ap.logger.debug('Long message processing strategy is not set, skip long message processing.')
return entities.StageProcessResult(result_type=entities.ResultType.CONTINUE, new_query=query)
if not query.resp_message_chain:
self.ap.logger.debug('Response message chain is empty, skip long message processing.')
return entities.StageProcessResult(result_type=entities.ResultType.CONTINUE, new_query=query)
# 检查是否包含非 Plain 组件
contains_non_plain = False