From 0ce416d1fa7a6b0f92d2b46f47a403fe574ec128 Mon Sep 17 00:00:00 2001 From: Mustafa Olmez <62564479+mmustafaolmez@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:58:21 +0300 Subject: [PATCH] Update google_news.py --- api/core/tools/provider/builtin/searchapi/tools/google_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/provider/builtin/searchapi/tools/google_news.py b/api/core/tools/provider/builtin/searchapi/tools/google_news.py index 3b31fdb7078c5e..d8c5d09d99848a 100644 --- a/api/core/tools/provider/builtin/searchapi/tools/google_news.py +++ b/api/core/tools/provider/builtin/searchapi/tools/google_news.py @@ -90,7 +90,7 @@ def _invoke( gl = tool_parameters.get("gl", "us") hl = tool_parameters.get("hl", "en") location = tool_parameters.get("location") - time_period = tool_parameters.get("time_period","last_month") + time_period = tool_parameters.get("time_period", "last_month") api_key = self.runtime.credentials["searchapi_api_key"] result = SearchAPI(api_key).run(