Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Multitenancy v2 changes for prompt studio apps - Prompt studio Profile Manager (#724)

jagadeeswaran-zipstack8b5e57cd9927
diff --git a/backend/prompt_studio/prompt_profile_manager_v2/serializers.py b/backend/prompt_studio/prompt_profile_manager_v2/serializers.py
index 6810918e1..2707fb586 100644
--- a/backend/prompt_studio/prompt_profile_manager_v2/serializers.py
+++ b/backend/prompt_studio/prompt_profile_manager_v2/serializers.py
@@ -2,7 +2,6 @@ import logging
from adapter_processor_v2.adapter_processor import AdapterProcessor
from prompt_studio.prompt_profile_manager_v2.constants import ProfileManagerKeys
-from prompt_studio.prompt_studio_core_v2.exceptions import MaxProfilesReachedError
from backend.serializers import AuditSerializer
@@ -39,15 +38,3 @@ class ProfileManagerSerializer(AuditSerializer):
AdapterProcessor.get_adapter_instance_by_id(x2text)
)
return rep
-
- def validate(self, data):
- prompt_studio_tool = data.get(ProfileManagerKeys.PROMPT_STUDIO_TOOL)
-
- profile_count = ProfileManager.objects.filter(
- prompt_studio_tool=prompt_studio_tool
- ).count()
-
- if profile_count >= ProfileManagerKeys.MAX_PROFILE_COUNT:
- raise MaxProfilesReachedError()
-
- return data