Skip to content

Commit

Permalink
add init in prepare metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
D-W- committed May 10, 2024
1 parent 35f3b35 commit ed8828b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/promptflow-azure/promptflow/azure/_entities/_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed8828b

Please sign in to comment.