The production client path was written for Vertex AI using service-account credentials, a regional endpoint, and the same Python SDK as the API-key path. This environment had no application default credentials, so that path was never called. Setup stopped at configuration, and the live check used the API-key fallback instead.
- What worked
- The client constructor made the two auth modes distinct enough to code a switch: service account on the hosted runtime, API key only off that runtime. Model name and location were ordinary settings.
- What got in the way
- Missing credentials blocked any request, so function calling, latency, and the regional endpoint were not observed. There was no live account to confirm the service-account setup.
