From 2d81a72884c46744ba3ac764efe7f37ece24452a Mon Sep 17 00:00:00 2001 From: Charles John <1017170+charl3sj@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:02:57 +0530 Subject: [PATCH] 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. --- libs/community/langchain_community/utilities/apify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/community/langchain_community/utilities/apify.py b/libs/community/langchain_community/utilities/apify.py index 04b893d460d..efcae49e2d1 100644 --- a/libs/community/langchain_community/utilities/apify.py +++ b/libs/community/langchain_community/utilities/apify.py @@ -17,6 +17,7 @@ class ApifyWrapper(BaseModel): apify_client: Any apify_client_async: Any + apify_api_token: Optional[str] = None @root_validator() def validate_environment(cls, values: Dict) -> Dict: