Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Brynn Yin <[email protected]>
  • Loading branch information
brynn-code committed Apr 25, 2024
1 parent 00df20e commit f70ddab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/promptflow-core/promptflow/core/_serving/flow_invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ def _init_connections(self, connection_provider):
self.logger.debug(f"Flow invoker connections name overrides: {self.connections_name_overrides.keys()}")
self.logger.debug(f"Ignoring connections: {connections_to_ignore}")
if not connection_provider:
# If user not pass in connection provider string, get from environment variable.
connection_provider = ConnectionProvider.get_instance(credential=self._credential)
else:
# Else, init from the string to parse the provider config.
connection_provider = ConnectionProvider.init_from_provider_config(
connection_provider, credential=self._credential
)
Expand Down

0 comments on commit f70ddab

Please sign in to comment.