LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Reverse Merge - V0.86.11 (hotfix) (#756)
Ritwik G4aef73ceee02
diff --git a/backend/prompt_studio/prompt_studio_registry/exceptions.py b/backend/prompt_studio/prompt_studio_registry/exceptions.pyindex 93086d815..cb0e3c71b 100644--- a/backend/prompt_studio/prompt_studio_registry/exceptions.py+++ b/backend/prompt_studio/prompt_studio_registry/exceptions.py@@ -20,8 +20,8 @@ class EmptyToolExportError(APIException):status_code = 500default_detail = ("Prompt Studio project without prompts cannot be exported. "- "Please ensure there is at least one prompt and "- "it is active before exporting."+ "Please ensure there is at least one active prompt "+ "that has been run before exporting.")diff --git a/backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.py b/backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.pyindex af00cffa6..bb507e888 100644--- a/backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.py+++ b/backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.py@@ -305,6 +305,16 @@ class PromptStudioRegistryHelper:if not prompt.profile_manager:prompt.profile_manager = default_llm_profile+ if not force_export:+ prompt_output = PromptStudioOutputManager.objects.filter(+ tool_id=tool.tool_id,+ prompt_id=prompt.prompt_id,+ profile_manager=prompt.profile_manager,+ ).all()+ if not prompt_output:+ invalidated_outputs.append(prompt.prompt_key)+ continue+vector_db = str(prompt.profile_manager.vector_store.id)embedding_model = str(prompt.profile_manager.embedding_model.id)llm = str(prompt.profile_manager.llm.id)diff --git a/frontend/src/components/custom-tools/prompt-card/Header.jsx b/frontend/src/components/custom-tools/prompt-card/Header.jsxindex 0397d9019..906434ce1 100644--- a/frontend/src/components/custom-tools/prompt-card/Header.jsx+++ b/frontend/src/components/custom-tools/prompt-card/Header.jsx@@ -56,7 +56,7 @@ function Header({} = useCustomToolStore();const [items, setItems] = useState([]);- const [isDisablePrompt, setIsDisablePrompt] = useState(promptDetails?.active);+ const [isDisablePrompt, setIsDisablePrompt] = useState(null);const handleRunBtnClick = (profileManager = null, coverAllDoc = true) => {setExpandCard(true);@@ -72,6 +72,9 @@ function Header({});};+ useEffect(() => {+ setIsDisablePrompt(promptDetails?.active);+ }, [promptDetails, details]);useEffect(() => {const dropdownItems = [@@ -105,7 +108,7 @@ function Header({}setItems(dropdownItems);- }, [promptDetails, details]);+ }, [isDisablePrompt]);return (<Row>