From 82ef0614caa8a6b86c580db66fd5217f3314636a Mon Sep 17 00:00:00 2001 From: Billy Bao Date: Fri, 14 Nov 2025 13:35:34 +0800 Subject: [PATCH] allow stream in file extraction --- agent/component/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/component/message.py b/agent/component/message.py index 2f868c766..4d2051e06 100644 --- a/agent/component/message.py +++ b/agent/component/message.py @@ -138,6 +138,7 @@ class Message(ComponentBase): yield rand_cnt[s: ] self.set_output("content", all_content) + self._convert_content(all_content) def _is_jinjia2(self, content:str) -> bool: patt = [ @@ -151,7 +152,7 @@ class Message(ComponentBase): return rand_cnt = random.choice(self._param.content) - if self._param.stream and self._param.output_format is None and not self._is_jinjia2(rand_cnt): + if self._param.stream and not self._is_jinjia2(rand_cnt): self.set_output("content", partial(self._stream, rand_cnt)) return