fix(pipeline): handle empty longtext response chain (#2197)

This commit is contained in:
huanghuoguoguo
2026-05-16 11:35:20 +08:00
committed by GitHub
parent 27fdccce16
commit 245e798b79
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