Skip to content

Commit 0b2d8a5

Browse files
authored
Fixing evaluation upload with 1RP Project (Azure#40836)
1 parent 7d64115 commit 0b2d8a5

File tree

1 file changed

+4
-0
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common

1 file changed

+4
-0
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ def is_onedp_project(azure_ai_project: AzureAIProject) -> bool:
141141
def validate_azure_ai_project(o: object) -> AzureAIProject:
142142
fields = {"subscription_id": str, "resource_group_name": str, "project_name": str}
143143

144+
# TODO : Add regex check for malformed project uri
145+
if is_onedp_project(o):
146+
return o
147+
144148
if not isinstance(o, dict):
145149
msg = "The 'azure_ai_project' parameter must be a dictionary."
146150
raise EvaluationException(

0 commit comments

Comments
 (0)