Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions garak/langproviders/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading