Skip to content

Commit 09eeca7

Browse files
authored
fix for positional arg (#40296)
1 parent 25d9d1c commit 09eeca7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_content_safety.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class ContentSafetyEvaluator(MultiEvaluatorBase[Union[str, float]]):
6262
def __init__(
6363
self,
6464
credential,
65-
azure_ai_project,
65+
azure_ai_project,
66+
*,
6667
violence_threshold: int = 3,
6768
sexual_threshold: int = 3,
6869
self_harm_threshold: int = 3,

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_relevance/_relevance.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ class RelevanceEvaluator(PromptyEvaluatorBase):
6363
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
6464

6565
@override
66-
def __init__(self, model_config, threshold=3):
66+
def __init__(
67+
self,
68+
model_config,
69+
*,
70+
threshold=3
71+
):
6772
current_dir = os.path.dirname(__file__)
6873
prompty_path = os.path.join(current_dir, self._PROMPTY_FILE)
6974
self._threshold = threshold

0 commit comments

Comments
 (0)