From e11e6e57cb6a5575421bc3ed60264fc4e93e5405 Mon Sep 17 00:00:00 2001 From: LuLu Zuo Date: Fri, 20 Oct 2023 19:16:06 +0800 Subject: [PATCH] persist result.output to output_dir --- src/promptflow/promptflow/_sdk/operations/_test_submitter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/promptflow/promptflow/_sdk/operations/_test_submitter.py b/src/promptflow/promptflow/_sdk/operations/_test_submitter.py index 12757f346ee..bd4d653e1af 100644 --- a/src/promptflow/promptflow/_sdk/operations/_test_submitter.py +++ b/src/promptflow/promptflow/_sdk/operations/_test_submitter.py @@ -206,6 +206,9 @@ def node_test( connections=connections, working_dir=self.flow.code, ) + result.output = persist_multimedia_data( + result.output, base_dir=self.flow.code, sub_dir=Path(".promptflow/output") + ) return result def _chat_flow(self, inputs, chat_history_name, environment_variables: dict = None, show_step_output=False):