Spaces:
Sleeping
Sleeping
File size: 373 Bytes
5db30ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 | """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
|