mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 04:55:14 +00:00
community[patch]: update @root_validator in utilities namespace (#23768)
Update all utilities to use `pre=True` or `pre=False` https://github.com/langchain-ai/langchain/issues/22819
This commit is contained in:
@@ -13,7 +13,7 @@ class RememberizerAPIWrapper(BaseModel):
|
||||
top_k_results: int = 10
|
||||
rememberizer_api_key: Optional[str] = None
|
||||
|
||||
@root_validator()
|
||||
@root_validator(pre=True)
|
||||
def validate_environment(cls, values: Dict) -> Dict:
|
||||
"""Validate that api key in environment."""
|
||||
rememberizer_api_key = get_from_dict_or_env(
|
||||
|
Reference in New Issue
Block a user