From da6f9da7c7807cb9d66fb49986cda9401c1bd3a9 Mon Sep 17 00:00:00 2001 From: anushak Date: Mon, 21 Jul 2025 06:48:54 +0000 Subject: [PATCH] [bug] gcp api paramaters --- garak/langproviders/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garak/langproviders/remote.py b/garak/langproviders/remote.py index dc541f2a8..7f751a754 100644 --- a/garak/langproviders/remote.py +++ b/garak/langproviders/remote.py @@ -203,9 +203,9 @@ def _load_langprovider(self): try: auth_args = [self.api_key] if self.project_id is not None: - auth_kwargs = {"project": self.project_id} + auth_args.append(self.project_id) self.client = translate.Client.from_service_account_json( - *auth_args, **auth_kwargs + *auth_args, ) except exceptions.MalformedError as e: logging.warning(