-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: suppress LangChainDeprecationWarning messages
- Loading branch information
1 parent
cfe6ce4
commit f01d2ac
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
src/backend/base/langflow/components/embeddings/util/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from .aiml import AIMLEmbeddingsImpl | ||
import warnings | ||
|
||
from langchain_core._api.deprecation import LangChainDeprecationWarning | ||
|
||
with warnings.catch_warnings(): | ||
warnings.simplefilter("ignore", LangChainDeprecationWarning) | ||
from .aiml import AIMLEmbeddingsImpl | ||
|
||
|
||
__all__ = ["AIMLEmbeddingsImpl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters