From ed8828b5ae880de5b143b77653a6f36ba2373159 Mon Sep 17 00:00:00 2001 From: Han Wang Date: Fri, 10 May 2024 17:59:55 +0800 Subject: [PATCH] add init in prepare metadata --- src/promptflow-azure/promptflow/azure/_entities/_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/promptflow-azure/promptflow/azure/_entities/_flow.py b/src/promptflow-azure/promptflow/azure/_entities/_flow.py index 7e471eb6344..150e5e05000 100644 --- a/src/promptflow-azure/promptflow/azure/_entities/_flow.py +++ b/src/promptflow-azure/promptflow/azure/_entities/_flow.py @@ -161,9 +161,8 @@ def _try_build_local_code(self) -> Optional[Code]: # generate .promptflow/flow.json for csharp flow as it's required to infer signature for csharp flow flow_directory, flow_file = resolve_flow_path(code.path) - # TODO: pass in init_kwargs to support csharp class init flex flow ProxyFactory().create_inspector_proxy(self.language).prepare_metadata( - flow_file=flow_directory / flow_file, working_dir=flow_directory + flow_file=flow_directory / flow_file, working_dir=flow_directory, init_kwargs=self._init_kwargs ) dag_updated = update_signatures(code=flow_dir, data=flow_dag) or dag_updated # validate init kwargs with signature