OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
Strip 'Bearer ' from token and add AppClients.close
Edwin Jose4402c1d1a641
diff --git a/Makefile b/Makefileindex 42715c82e..5859f6858 100644--- a/Makefile+++ b/Makefile@@ -49,7 +49,7 @@ define test_jwt_opensearchTEST_TOKEN=$$(uv run python -c 'from utils.logging_config import configure_logging; configure_logging(log_level="CRITICAL"); \from src.session_manager import SessionManager, AnonymousUser; \sm = SessionManager("test"); \- print(sm.create_jwt_token(AnonymousUser()))' 2>/dev/null); \+ print(sm.create_jwt_token(AnonymousUser()).removeprefix("Bearer "))' 2>/dev/null); \if [ -z "$$TEST_TOKEN" ]; then \echo "$(RED)Failed to generate JWT token$(NC)"; \exit 1; \diff --git a/src/config/settings.py b/src/config/settings.pyindex 9787e0582..26514d658 100644--- a/src/config/settings.py+++ b/src/config/settings.py@@ -634,6 +634,10 @@ class AppClients:finally:self.langflow_client = None+ async def close(self):+ """Alias for cleanup() for convenience."""+ await self.cleanup()+async def langflow_request(self, method: str, endpoint: str, **kwargs):"""Central method for all Langflow API requests.