[PATCH] devtools: add Vertex AI to review scripts
Thomas Monjalon
thomas at monjalon.net
Mon Jun 1 16:21:25 CEST 2026
01/06/2026 15:24, David Marchand:
> + if args.auth == "auto":
> + auth_method = detect_auth_method(args.provider)
> + else:
> + auth_method = args.auth
> +
> + if auth_method == "vertex":
> + if not VERTEX_AI_AVAILABLE:
> + error("Vertex AI support requires 'google-auth' library. Install with: pip install google-auth")
> + auth = "vertex"
> + else:
> + api_key = os.environ.get(config["env_var"])
> + if not api_key:
> + error(f"{config['env_var']} environment variable not set")
> + auth = f"direct:{api_key}"
Could we have such code in the common file?
More information about the dev
mailing list