alexsong-oai
970111f6cb
Allow configuring GCP project and location in provider settings ( #56560 )
...
## Why
Deriving a Vertex AI endpoint previously required environment variables. Allow the project and location to be specified directly in GCP provider configuration.
## What changed
- Add `model_providers.gcp.project_id` and `model_providers.gcp.location`, with each taking precedence over its corresponding environment variable. Keep `global` as the default location and preserve explicit `base_url` overrides.
- Validate configured endpoint fields and preserve them through thread configuration serialization.
- Apply built-in GCP defaults, including default command authentication, when checking managed provider requirements so unchanged requirements are accepted.
## Testing
Add coverage for endpoint precedence, invalid explicit configuration, provider construction, thread configuration round trips, and managed GCP requirement checks, including repeated model listing.
GitOrigin-RevId: c3704bcc0b7d4872374e2cae623fd24d75fb02b4
2026-10-23 18:50:54 +00:00
..
2026-10-21 21:50:55 +00:00
2026-10-14 07:13:22 +00:00
2026-10-20 21:28:45 +00:00
2026-10-23 14:59:40 +00:00
2026-10-23 06:34:00 +00:00
2026-10-23 18:50:54 +00:00
2026-10-22 01:14:34 +00:00
2026-10-21 19:06:57 +00:00
2026-10-23 18:39:28 +00:00
2026-10-23 04:52:47 +00:00
2026-10-20 15:43:19 +00:00
2026-10-12 11:24:22 +00:00
2026-10-16 23:56:33 +00:00
2026-10-15 19:51:22 +00:00
2026-10-22 19:36:47 +00:00
2026-10-23 00:54:06 +00:00
2026-10-07 22:11:14 +00:00
2026-10-20 15:43:19 +00:00
2026-10-23 11:43:14 +00:00
2026-10-23 00:54:06 +00:00
2026-10-20 15:43:19 +00:00
2026-10-21 21:46:56 +00:00
2026-10-20 18:53:06 +00:00
2026-10-20 21:28:45 +00:00
2026-10-20 21:28:45 +00:00
2026-10-23 16:56:38 +00:00
2026-10-19 21:43:19 +00:00
2026-10-23 04:01:39 +00:00
2026-10-23 18:50:54 +00:00
2026-10-16 19:26:46 +00:00
2026-10-17 04:02:21 +00:00
2026-10-23 18:50:54 +00:00
2026-10-20 14:14:59 +00:00
2026-10-19 15:15:17 +00:00
2026-10-23 14:15:03 +00:00
2026-10-20 21:28:45 +00:00
2026-10-21 22:49:54 +00:00
2026-10-08 20:11:43 +00:00
2026-10-23 04:52:47 +00:00
2026-10-23 12:42:39 +00:00
2026-10-22 11:52:34 +00:00
2026-10-23 18:50:29 +00:00
2026-10-23 12:23:10 +00:00
2026-10-23 18:48:10 +00:00
2026-10-22 19:36:47 +00:00
2026-10-22 19:36:47 +00:00
2026-10-21 19:53:00 +00:00
2026-10-13 17:22:34 +00:00
2026-10-19 15:15:41 +00:00
2026-10-23 18:50:29 +00:00
2026-10-21 02:41:05 +00:00
2026-10-23 18:39:28 +00:00
2026-10-22 01:07:13 +00:00
2026-10-22 19:36:47 +00:00
2026-10-23 12:08:11 +00:00
2026-10-23 18:50:54 +00:00
2026-10-23 12:23:10 +00:00
2026-10-22 19:36:47 +00:00
2026-10-23 15:00:06 +00:00
2026-10-22 19:36:47 +00:00
2026-10-23 18:50:54 +00:00
2026-10-23 18:50:54 +00:00
2026-10-23 00:40:04 +00:00
2026-10-19 20:54:41 +00:00
2026-10-23 18:40:55 +00:00
2026-10-20 22:34:40 +00:00
2026-10-06 21:29:35 +00:00
2026-10-23 00:46:28 +00:00
2026-10-23 18:48:10 +00:00
2026-10-10 02:54:59 +00:00
2026-10-23 11:43:14 +00:00
2026-10-19 16:56:42 +00:00
2026-10-22 23:14:44 +00:00
2026-10-23 04:52:47 +00:00
2026-10-23 03:39:48 +00:00
2026-10-20 17:29:40 +00:00
2026-10-20 21:28:45 +00:00
2026-10-20 21:28:45 +00:00
2026-10-22 04:59:19 +00:00
2026-10-20 21:28:45 +00:00
2026-10-19 21:01:44 +00:00
2026-10-23 18:30:44 +00:00
2026-10-22 00:19:02 +00:00
2026-10-12 17:52:12 +00:00
2026-10-23 06:34:00 +00:00
2026-10-23 04:52:47 +00:00
2026-10-23 04:01:39 +00:00
2026-10-23 18:39:28 +00:00
2026-10-13 22:40:57 +00:00
2026-10-23 17:35:25 +00:00
2026-10-16 06:06:54 +00:00
2026-10-22 17:42:21 +00:00
2026-10-20 21:28:45 +00:00
2026-10-22 19:36:47 +00:00
2026-10-22 17:02:32 +00:00
2026-10-20 14:48:59 +00:00
2026-10-07 22:11:14 +00:00
2026-10-23 17:35:25 +00:00
2026-10-23 17:35:25 +00:00
2026-10-20 11:55:08 +00:00
2026-10-20 21:28:45 +00:00