mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user