Spaces:
Sleeping
Sleeping
Download src/elbench/basic_education_runtime/langchain_compat.py from adelevett/ELBench-live: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/adelevett/ELBench-live/resolve/main/src/elbench/basic_education_runtime/langchain_compat.py
- Command line
-
hf download hf://spaces/adelevett/ELBench-live/src/elbench/basic_education_runtime/langchain_compat.py
-
curl -L -o langchain_compat.py https://huggingface.co/spaces/adelevett/ELBench-live/resolve/main/src/elbench/basic_education_runtime/langchain_compat.py
373 Bytes
| """Compatibility helpers for LangChain version differences.""" | |
| try: | |
| from langchain.globals import set_debug | |
| except ModuleNotFoundError: | |
| try: | |
| from langchain_core.globals import set_debug | |
| except ModuleNotFoundError: | |
| def set_debug(_: bool) -> None: | |
| """Fallback when LangChain debug globals are unavailable.""" | |
| return None | |