Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

updated toxicity

A-Vamshic5ed2e907e7d
diff --git a/deepteam/vulnerabilities/toxicity/toxicity.py b/deepteam/vulnerabilities/toxicity/toxicity.py
index 4e3a0f9b..f6fb504a 100644
--- a/deepteam/vulnerabilities/toxicity/toxicity.py
+++ b/deepteam/vulnerabilities/toxicity/toxicity.py
@@ -185,7 +185,7 @@ class Toxicity(BaseVulnerability):
templates[type] = templates.get(type, [])
templates[type].append(
ToxicityTemplate.generate_baseline_attacks(
- type, attacks_per_vulnerability_type, self.toxicity_category
+ type, attacks_per_vulnerability_type, self.purpose
)
)
@@ -239,7 +239,7 @@ class Toxicity(BaseVulnerability):
templates[type] = templates.get(type, [])
templates[type].append(
ToxicityTemplate.generate_baseline_attacks(
- type, attacks_per_vulnerability_type, self.toxicity_category
+ type, attacks_per_vulnerability_type, self.purpose
)
)