Fix tweaks to pass load_from_db=False

This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-09-22 19:32:08 -03:00
parent c8c78f83d8
commit b19890fa4d

View file

@ -91,7 +91,9 @@ class LangflowFileService:
# Pass JWT token via tweaks using the x-langflow-global-var- pattern
if jwt_token:
# Using the global variable pattern that Langflow expects for OpenSearch components
tweaks["OpenSearchVectorStoreComponent-YnJox"] = {"jwt_token": jwt_token}
tweaks["OpenSearchVectorStoreComponent-YnJox"] = {
"jwt_token": {"value": jwt_token, "load_from_db": False},
}
logger.debug("[LF] Added JWT token to tweaks for OpenSearch components")
else:
logger.warning("[LF] No JWT token provided")