On Mon, 1 Jun 2026 at 16:21, Thomas Monjalon <[email protected]> wrote:
>
> 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?

Indeed, I'll wait a bit for more comments before sending a v2.


-- 
David Marchand

Reply via email to