Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch to using _get_with_credentials
  • Loading branch information
dargilco committed Apr 30, 2025
commit b1fd86b1b606d82c2b42f7d5f195a910a3db6918
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ async def get_azure_openai_client(
# If the connection uses API key authentication, we need to make another service call to get
# the connection with API key populated.
if connection.credentials.type == CredentialType.API_KEY:
connection = await self._outer_instance.connections.get_with_credentials(name=connection_name, **kwargs)
connection = await self._outer_instance.connections._get_with_credentials(name=connection_name, **kwargs)

logger.debug("[InferenceOperations.get_azure_openai_client] connection = %s", str(connection))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def get_connection_string(self) -> str:
if not connection_name:
raise ResourceNotFoundError("No Application Insights connection found.")

connection = await self._outer_instance.connections.get_with_credentials(name=connection_name)
connection = await self._outer_instance.connections._get_with_credentials(name=connection_name)

if isinstance(connection.credentials, ApiKeyCredentials):
if not connection.credentials.api_key:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_azure_openai_client(
# If the connection uses API key authentication, we need to make another service call to get
# the connection with API key populated.
if connection.credentials.type == CredentialType.API_KEY:
connection = self._outer_instance.connections.get_with_credentials(name=connection_name, **kwargs)
connection = self._outer_instance.connections._get_with_credentials(name=connection_name, **kwargs)

logger.debug("[InferenceOperations.get_azure_openai_client] connection = %s", str(connection))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_connection_string(self) -> str:
if not connection_name:
raise ResourceNotFoundError("No Application Insights connection found.")

connection = self._outer_instance.connections.get_with_credentials(name=connection_name)
connection = self._outer_instance.connections._get_with_credentials(name=connection_name)

if isinstance(connection.credentials, ApiKeyCredentials):
if not connection.credentials.api_key:
Expand Down