mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 22:44:36 +00:00
community[patch],core[patch]: Update EdenaiTool root_validator and add unit test in core (#25233)
This PR gets rid `root_validators(allow_reuse=True)` logic used in EdenAI Tool in preparation for pydantic 2 upgrade. - add another test to secret_from_env_factory
This commit is contained in:
@@ -6,7 +6,9 @@ import pytest
|
||||
from langchain_community.tools.edenai import EdenAiTextModerationTool
|
||||
|
||||
tool = EdenAiTextModerationTool( # type: ignore[call-arg]
|
||||
providers=["openai"], language="en", edenai_api_key="fake_key"
|
||||
providers=["openai"],
|
||||
language="en",
|
||||
edenai_api_key="fake_key", # type: ignore[arg-type]
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user