We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd1dbc commit b830204Copy full SHA for b830204
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_evaluation_processor.py
@@ -147,6 +147,9 @@ async def evaluate_with_rai_service_with_retry():
147
try:
148
# Use sync_evals endpoint for OneDP projects, legacy endpoint for others
149
if is_onedp_project(self.azure_ai_project):
150
+ # If using sync API use hate_unfairness rather than hate_fairness
151
+ if metric_name == "hate_fairness":
152
+ metric_name = "hate_unfairness"
153
return await evaluate_with_rai_service_sync(
154
data=query_response,
155
metric_name=metric_name,
0 commit comments