We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 159f022 commit b9ea359Copy full SHA for b9ea359
src/backend/base/langflow/services/tracing/utils.py
@@ -1,3 +1,4 @@
1
+import os
2
from typing import Any
3
4
from langflow.schema.data import Data
@@ -27,3 +28,10 @@ def convert_to_langchain_types(io_dict: dict[str, Any]):
27
28
for key, value in io_dict.items():
29
converted[key] = convert_to_langchain_type(value)
30
return converted
31
+
32
33
+def set_env_from_globals(key: str, global_vars: dict[str, Any] | None) -> None:
34
+ if global_vars is not None and key in global_vars:
35
+ value = global_vars.get(key)
36
+ if isinstance(value, str):
37
+ os.environ[key] = value
0 commit comments