Default global variables aren't added when LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT
is set
#4190
Labels
bug
Something isn't working
Bug Description
If you define a default global variable (constants.py) as well as
LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT
in the same.env
file, the default global variable is ignored.Reproduction
.env
file with the following contents:VARIABLE1="VALUE1" python -m langflow run --env-file .env
Go to Settings > Environment Variables, and notice only
VARIABLE1
is added.Comment out
LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT
in the.env
file:Restart Langflow.
Go to Settings > Environment Variables, and notice that
OPENAI_API_KEY
is added.Expected behavior
I expected Langflow to honor both the default global variables as well as the custom global variables that I've defined in
LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT
.Who can help?
@Italo
Operating System
macOS 14.7, Docker
Langflow Version
1.0.19
Python Version
3.11
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: