Skip to content

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

fixed typo

A-Vamshi4c3057c3fbf8
diff --git a/deepteam/vulnerabilities/toxicity/toxicity.py b/deepteam/vulnerabilities/toxicity/toxicity.py
index b165fa82..06799cd4 100644
--- a/deepteam/vulnerabilities/toxicity/toxicity.py
+++ b/deepteam/vulnerabilities/toxicity/toxicity.py
@@ -181,7 +181,7 @@ class Toxicity(BaseVulnerability):
templates[type] = templates.get(type, [])
templates[type].append(
ToxicityTemplate.generate_baseline_attacks(
- type, attacks_per_vulnerability_type, self.purpose
+ type, attacks_per_vulnerability_type, self.toxicity_category
)
)
@@ -232,7 +232,7 @@ class Toxicity(BaseVulnerability):
templates[type] = templates.get(type, [])
templates[type].append(
ToxicityTemplate.generate_baseline_attacks(
- type, attacks_per_vulnerability_type, self.purpose
+ type, attacks_per_vulnerability_type, self.toxicity_category
)
)