From e7875324790dddbaa7078b68080e97fd6648c8e8 Mon Sep 17 00:00:00 2001 From: Leonid Ganeline Date: Tue, 23 Jul 2024 08:23:18 -0700 Subject: [PATCH] langchain: `globals` fix (#21281) Issue: functions from `globals`, like the `get_debug` are placed in the init.py file. As a result, they don't listed in the API Reference docs. [See this](https://langchain-9jq1kef7i-langchain.vercel.app/v0.2/docs/how_to/debugging/#set_debugtrue) and [broken this](https://api.python.langchain.com/en/latest/globals/langchain.globals.set_debug.html). Change: moved code from init.py into the `globals.py` file and removed `globals` directory. Similar to: #21266 BTW `globals` in core implemented exactly inside a file not inside a folder. --- libs/langchain/langchain/{globals/__init__.py => globals.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename libs/langchain/langchain/{globals/__init__.py => globals.py} (100%) diff --git a/libs/langchain/langchain/globals/__init__.py b/libs/langchain/langchain/globals.py similarity index 100% rename from libs/langchain/langchain/globals/__init__.py rename to libs/langchain/langchain/globals.py