community[patch]: root validator set explicit pre=False or pre=True (#23764)

See issue: https://github.com/langchain-ai/langchain/issues/22819
This commit is contained in:
Eugene Yurtsev
2024-07-02 09:42:05 -04:00
committed by GitHub
parent 4457e64e13
commit d084172b63
5 changed files with 5 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class ApifyWrapper(BaseModel):
apify_client_async: Any
apify_api_token: Optional[str] = None
@root_validator()
@root_validator(pre=True)
def validate_environment(cls, values: Dict) -> Dict:
"""Validate environment.
Validate that an Apify API token is set and the apify-client