File, Config or Environment Variable?

Created on 24 April 2025, about 1 month ago

Problem/Motivation

This could be explained better both here:
https://www.drupal.org/project/ai_provider_google_vertex

And when setting up the provider docs here:
/admin/config/ai/providers/google_vertex

What I see on the Setup Google Vertex is:

General Google Credentials File
Choose an available key. If the desired key is not listed, create a new key. The location of a Google Credentials File. Read more under https://cloud.google.com/docs/authentication/application-default-credent....

Is this actually referring to a “Google Credentials File” or .key file or a generic a JSON file for a service account, not a .key file in the traditional sense (like SSH).

I'm fine with a JSON file contains private keys for me to authenticate with Vertex AI, but I'm not seeing that information in:
https://cloud.google.com/docs/authentication/application-default-credent...

I'm just not seeing a way to download a file for which to use the API key. Now I had tried with setting the API key I've generated in a config setting, but am enccountering this error:

AiRequestErrorException: Error invoking model response: Could not construct ApplicationDefaultCredentials

I could possibly set it in the environment variables too (but not sure if that will work with Google Vertex as it is now.

Steps to reproduce

See above.

Proposed resolution

More documentation on what works and verified URLs.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.1

Component

Documentation

Created by

🇨🇦Canada mgifford Ottawa, Ontario

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024