LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Fixed invalid api key format raising 500 (#1079)
Praveen Kumar282506297426
diff --git a/backend/api_v2/key_helper.py b/backend/api_v2/key_helper.pyindex 2ff10654c..22421ff86 100644--- a/backend/api_v2/key_helper.py+++ b/backend/api_v2/key_helper.py@@ -4,6 +4,7 @@ from typing import Unionfrom api_v2.exceptions import UnauthorizedKeyfrom api_v2.models import APIDeployment, APIKeyfrom api_v2.serializers import APIKeySerializer+from django.core.exceptions import ValidationErrorfrom pipeline_v2.models import Pipelinefrom rest_framework.request import Requestfrom workflow_manager.workflow_v2.workflow_helper import WorkflowHelper@@ -29,7 +30,7 @@ class KeyHelper:api_key_instance: APIKey = APIKey.objects.get(api_key=api_key)if not KeyHelper.has_access(api_key_instance, instance):raise UnauthorizedKey()- except APIKey.DoesNotExist:+ except (APIKey.DoesNotExist, ValidationError):raise UnauthorizedKey()@staticmethod