Skip to content

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

update the new frameworks endpoint

A-Vamshidb90ed6089eb
diff --git a/deepteam/confident/api.py b/deepteam/confident/api.py
index 42f37d12..7710a0d0 100644
--- a/deepteam/confident/api.py
+++ b/deepteam/confident/api.py
@@ -24,7 +24,7 @@ from deepeval.confident.api import (
class Endpoints(Enum):
RISK_ASSESSMENT_ENDPOINT = "/v1/risk-assessments"
- RT_FRAMEWORK_ENDPOINT = "/v1/risk-assessments/frameworks/:frameworkId"
+ RT_FRAMEWORK_ENDPOINT = "/v1/rt-frameworks/:frameworkId"
class Api:
diff --git a/deepteam/frameworks/frameworks.py b/deepteam/frameworks/frameworks.py
index 7811d3ee..23dfee7f 100644
--- a/deepteam/frameworks/frameworks.py
+++ b/deepteam/frameworks/frameworks.py
@@ -49,7 +49,7 @@ class RedTeamingFramework:
)
update_pbar(progress, task_id, advance_to_end=True)
- response = RedTeamingFrameworkHttpResponse(**data["framework"])
+ response = RedTeamingFrameworkHttpResponse(**data["rtFramework"])
risk_categories = build_risk_categories(
response.risk_categories, response.name
)