Skip to content

Commit 76388bc

Browse files
committed
Improve azure-ai-evaluation error message
Currently the error message mentions that only `dict` is an acceptable type for the parameter `azure_ai_project`. This is incorrect as also a `str` containing a project URI is acceptable.
1 parent 41663d6 commit 76388bc

File tree

1 file changed

+1
-1
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def validate_azure_ai_project(o: object) -> AzureAIProject:
146146
return o
147147

148148
if not isinstance(o, dict):
149-
msg = "The 'azure_ai_project' parameter must be a dictionary."
149+
msg = "The 'azure_ai_project' parameter must be a dictionary or a project URI string."
150150
raise EvaluationException(
151151
message=msg,
152152
category=ErrorCategory.INVALID_VALUE,

0 commit comments

Comments
 (0)