Skip to content

Commit

Permalink
Remove non-needed constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nick863 committed Jun 20, 2024
1 parent f2b06d8 commit 7b64958
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/promptflow-evals/promptflow/evals/evaluate/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"^azureml:[/]{1,2}subscriptions/([^/]+)/resource(groups|Groups)/([^/]+)"
"(/providers/Microsoft.MachineLearningServices)?/workspaces/([^/]+)$"
)
# Authentication constants
AZUREML_OBO_ENABLED = "AZUREML_OBO_ENABLED"
DEFAULT_IDENTITY_CLIENT_ID = "DEFAULT_IDENTITY_CLIENT_ID"

AzureMLWorkspaceTriad = namedtuple("AzureMLWorkspace", ["subscription_id", "resource_group_name", "workspace_name"])


Expand Down Expand Up @@ -68,6 +66,7 @@ def _write_properties_to_run_history(properties: dict) -> None:

def _azure_pf_client_and_triad(trace_destination):
from promptflow.azure._cli._utils import _get_azure_pf_client

ws_triad = extract_workspace_triad_from_trace_provider(trace_destination)
azure_pf_client = _get_azure_pf_client(
subscription_id=ws_triad.subscription_id,
Expand Down

0 comments on commit 7b64958

Please sign in to comment.