LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FIX] String being passed instead of boolean for FLIPT_SERVICE_AVAILABLE (#730)
Deepak Ke0119ee85765
diff --git a/unstract/flags/src/unstract/flags/client/flipt.py b/unstract/flags/src/unstract/flags/client/flipt.pyindex ee00eeeec..122d69685 100644--- a/unstract/flags/src/unstract/flags/client/flipt.py+++ b/unstract/flags/src/unstract/flags/client/flipt.py@@ -33,7 +33,9 @@ class FliptClient(BaseClient):def list_feature_flags(self, namespace_key: str) -> dict:try:- FLIPT_SERVICE_AVAILABLE = os.environ.get("FLIPT_SERVICE_AVAILABLE", False)+ FLIPT_SERVICE_AVAILABLE = (+ os.environ.get("FLIPT_SERVICE_AVAILABLE", "false").lower() == "true"+ )if not FLIPT_SERVICE_AVAILABLE:logger.warning("Flipt service is not available.")return {}diff --git a/unstract/flags/src/unstract/flags/feature_flag.py b/unstract/flags/src/unstract/flags/feature_flag.pyindex cae088c6b..e8124362d 100644--- a/unstract/flags/src/unstract/flags/feature_flag.py+++ b/unstract/flags/src/unstract/flags/feature_flag.py@@ -31,7 +31,9 @@ def check_feature_flag_status("""try:- FLIPT_SERVICE_AVAILABLE = os.environ.get("FLIPT_SERVICE_AVAILABLE", False)+ FLIPT_SERVICE_AVAILABLE = (+ os.environ.get("FLIPT_SERVICE_AVAILABLE", "false").lower() == "true"+ )if not FLIPT_SERVICE_AVAILABLE:return False