Commit 2daf3e9
committed
Use 'or' fallback for Langflow flow IDs
Switch LANGFLOW_* and NUDGES_FLOW_ID settings to use os.getenv(...) or <default> instead of os.getenv(..., <default>). This makes the code fall back to the hardcoded defaults when an environment variable is set to an empty string as well as when it's unset. Updated variables: LANGFLOW_CHAT_FLOW_ID, LANGFLOW_INGEST_FLOW_ID, LANGFLOW_URL_INGEST_FLOW_ID, NUDGES_FLOW_ID.1 parent 5a766b5 commit 2daf3e9
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
| |||
0 commit comments