Skip to content

Commit

Permalink
persist result.output to output_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Hhhilulu committed Oct 20, 2023
1 parent a638acf commit e11e6e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/promptflow/promptflow/_sdk/operations/_test_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e11e6e5

Please sign in to comment.