File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_aoai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def get_client(self) -> Any:
118
118
api_key = api_key , # Default-style access to appease linters.
119
119
api_version = DEFAULT_AOAI_API_VERSION , # Force a known working version
120
120
azure_deployment = model_config .get ("azure_deployment" , "" ),
121
- azure_ad_token_provider = self .get_token_provider (self ._credential ) if not api_key else None ,
121
+ azure_ad_token_provider = self ._get_token_provider (self ._credential ) if not api_key else None ,
122
122
default_headers = default_headers ,
123
123
)
124
124
from openai import OpenAI
@@ -132,7 +132,7 @@ def get_client(self) -> Any:
132
132
)
133
133
134
134
@staticmethod
135
- def get_token_provider (cred : TokenCredential ) -> "AzureADTokenProvider" :
135
+ def _get_token_provider (cred : TokenCredential ) -> "AzureADTokenProvider" :
136
136
"""Get the token provider the AzureOpenAI client.
137
137
138
138
:param TokenCredential cred: The Azure authentication credential.
You can’t perform that action at this time.
0 commit comments