diff --git a/src/promptflow-evals/promptflow/evals/synthetic/jailbreak_adversarial_simulator.py b/src/promptflow-evals/promptflow/evals/synthetic/jailbreak_adversarial_simulator.py index 1bed38e5376..9f40fcc2aef 100644 --- a/src/promptflow-evals/promptflow/evals/synthetic/jailbreak_adversarial_simulator.py +++ b/src/promptflow-evals/promptflow/evals/synthetic/jailbreak_adversarial_simulator.py @@ -66,6 +66,7 @@ def __init__(self, *, azure_ai_project: Dict[str, Any], credential=None): credential = DefaultAzureCredential() elif "credential" in azure_ai_project: credential = azure_ai_project["credential"] + self.credential = credential self.azure_ai_project = azure_ai_project self.token_manager = ManagedIdentityAPITokenManager( token_scope=TokenScope.DEFAULT_AZURE_MANAGEMENT,