adelevett's picture
Deploy ELBench-live dashboard
5db30ac verified
Raw History Blame Contribute Delete
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