mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-17 04:18:53 +00:00
community: fix missing apify_api_token
field in ApifyWrapper (#22421)
- **Description:** The `ApifyWrapper` class expects `apify_api_token` to be passed as a named parameter or set as an environment variable. But the corresponding field was missing in the class definition causing the argument to be ignored when passed as a named param. This patch fixes that.
This commit is contained in:
parent
dac355fc62
commit
2d81a72884
@ -17,6 +17,7 @@ class ApifyWrapper(BaseModel):
|
|||||||
|
|
||||||
apify_client: Any
|
apify_client: Any
|
||||||
apify_client_async: Any
|
apify_client_async: Any
|
||||||
|
apify_api_token: Optional[str] = None
|
||||||
|
|
||||||
@root_validator()
|
@root_validator()
|
||||||
def validate_environment(cls, values: Dict) -> Dict:
|
def validate_environment(cls, values: Dict) -> Dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user