eli
2d7f5377e4
feat(vertex): honor full /publishers/ prefix in API-key base-url
...
The API-key vertex executor previously always appended
"/v1/publishers/google/models/{model}:{action}" to whatever base-url the
credential carried, so a base-url that already encoded the resource path
(e.g. "https://aiplatform.googleapis.com/v1/projects/{p}/locations/{l}/publishers/google/models ")
would produce a duplicated "/v1" and return 404.
This change teaches the helper to:
1. detect a base-url that already contains "/publishers/" and use it
as-is (preserving any projects/locations segment), and
2. skip inserting "/v1" when the trimmed base already ends in a
version segment such as "/v1" or "/v1beta1".
Short third-party hosts like "https://zenmux.ai " keep working unchanged;
real Vertex API-key setups can now write the full resource prefix into
base-url to pick a specific project/location (e.g. us-central1 for
gemini-4-argon).
Includes a table-driven unit test covering empty, bare host, /v1,
/publishers/-full-prefix, v1beta1, and countTokens variants.
Co-Authored-By: Claude Code <noreply@anthropic.com >
2026-10-15 18:36:57 +08:00
..
2026-10-15 08:05:58 +08:00
2026-10-11 14:08:49 +08:00
2026-10-14 12:08:35 +08:00
2026-10-14 12:08:35 +08:00
2026-10-02 15:21:46 +08:00
2026-10-08 03:00:04 +08:00
2026-10-02 22:13:24 +08:00
2026-10-02 22:13:24 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-30 06:57:24 +08:00
2026-10-02 22:13:24 +08:00
2026-09-27 14:42:26 +08:00
2026-10-08 02:11:20 +08:00
2026-10-05 04:32:35 +08:00
2026-10-14 10:17:01 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 21:43:22 +08:00
2026-10-11 17:58:34 +08:00
2026-10-02 10:58:36 +08:00
2026-10-08 02:11:20 +08:00
2026-10-05 06:25:53 +08:00
2026-10-08 02:11:20 +08:00
2026-10-11 20:45:18 +08:00
2026-10-02 15:36:10 +08:00
2026-10-08 02:11:20 +08:00
2026-10-13 13:01:12 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-05 13:24:20 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-05 13:24:20 +08:00
2026-09-30 06:57:24 +08:00
2026-09-30 06:57:24 +08:00
2026-10-14 21:43:22 +08:00
2026-10-13 13:01:12 +08:00
2026-10-02 05:34:30 +08:00
2026-10-02 03:49:51 +08:00
2026-10-02 03:49:51 +08:00
2026-10-07 09:31:03 +08:00
2026-10-02 03:49:51 +08:00
2026-10-02 03:49:51 +08:00
2026-10-05 14:16:37 +08:00
2026-10-07 08:40:41 +08:00
2026-10-07 20:52:17 +08:00
2026-10-09 17:43:09 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-24 15:26:39 +08:00
2026-10-10 08:01:26 +08:00
2026-10-09 03:24:45 +08:00
2026-10-09 03:24:45 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 08:40:02 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-12 11:53:16 +09:00
2026-10-15 00:57:02 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 08:40:02 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 08:40:02 +08:00
2026-09-27 14:42:26 +08:00
2026-10-11 14:21:00 +08:00
2026-10-06 05:45:17 +08:00
2026-10-12 10:26:17 +02:00
2026-10-12 20:28:18 +02:00
2026-10-07 23:32:21 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 08:40:02 +08:00
2026-09-27 14:42:26 +08:00
2026-10-15 00:57:02 +08:00
2026-10-15 00:57:18 +08:00
2026-09-27 14:42:26 +08:00
2026-09-29 21:21:58 +08:00
2026-09-27 14:42:26 +08:00
2026-10-07 08:40:41 +08:00
2026-10-07 20:52:17 +08:00
2026-08-18 18:06:40 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 20:59:02 +08:00
2026-10-12 11:45:25 +08:00
2026-10-12 11:45:25 +08:00
2026-09-28 10:46:32 +08:00
2026-10-12 11:45:25 +08:00
2026-10-05 17:08:02 +08:00
2026-10-14 02:54:02 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-12 11:45:25 +08:00
2026-09-09 11:57:58 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-02 05:34:30 +08:00
2026-10-14 02:54:02 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 02:54:02 +08:00
2026-10-05 11:10:54 +08:00
2026-10-01 03:06:59 +08:00
2026-10-07 19:21:32 +09:00
2026-10-01 02:04:49 +08:00
2026-10-08 03:00:04 +08:00
2026-10-02 03:49:51 +08:00
2026-09-27 14:42:26 +08:00
2026-10-09 10:10:50 +08:00
2026-10-12 11:45:25 +08:00
2026-10-02 22:36:37 +08:00
2026-09-27 14:42:26 +08:00
2026-10-10 20:26:36 +08:00
2026-10-04 03:01:34 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-28 10:46:32 +08:00
2026-09-28 10:46:32 +08:00
2026-09-27 14:42:26 +08:00
2026-10-04 03:01:34 +08:00
2026-09-27 14:42:26 +08:00
2026-10-12 19:42:54 +08:00
2026-10-12 19:42:54 +08:00
2026-09-28 10:46:32 +08:00
2026-10-12 19:42:54 +08:00
2026-10-08 21:32:26 +08:00
2026-10-09 21:35:40 +08:00
2026-10-12 11:45:25 +08:00
2026-09-27 14:42:26 +08:00
2026-10-12 19:42:54 +08:00
2026-10-02 05:34:30 +08:00
2026-10-12 19:42:54 +08:00
2026-09-27 14:42:26 +08:00
2026-10-10 21:48:20 +08:00
2026-10-10 21:48:20 +08:00
2026-10-03 15:53:39 +08:00
2026-10-08 02:11:20 +08:00
2026-09-27 14:42:26 +08:00
2026-10-14 12:08:35 +08:00
2026-10-14 12:08:35 +08:00
2026-10-04 04:23:31 +08:00
2026-10-04 04:23:31 +08:00
2026-10-08 03:00:04 +08:00
2026-10-08 12:39:31 +08:00
2026-10-07 08:16:52 +08:00
2026-10-15 18:36:57 +08:00
2026-10-15 08:05:58 +08:00
2026-10-15 18:36:57 +08:00
2026-09-27 14:42:26 +08:00
2026-10-02 15:21:46 +08:00
2026-10-05 15:55:38 +08:00
2026-10-09 19:44:24 +08:00
2026-10-09 19:44:24 +08:00
2026-10-14 03:12:26 +08:00
2026-10-14 03:12:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-08 13:03:21 +08:00
2026-10-07 09:31:03 +08:00
2026-10-08 13:03:21 +08:00
2026-10-02 03:49:51 +08:00
2026-09-27 14:42:26 +08:00
2026-10-02 22:36:35 +08:00
2026-09-27 14:42:26 +08:00
2026-09-29 22:44:33 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-09 19:00:58 +08:00
2026-09-27 14:42:26 +08:00
2026-10-09 19:00:58 +08:00
2026-09-28 20:40:10 +08:00
2026-10-08 13:03:21 +08:00
2026-10-08 13:03:21 +08:00
2026-10-04 03:01:34 +08:00
2026-10-04 03:01:34 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-08 02:11:20 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-22 03:54:34 +08:00
2026-09-27 14:42:26 +08:00
2026-10-05 04:05:41 +08:00
2026-10-08 02:39:32 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-09-27 14:42:26 +08:00
2026-10-07 13:12:14 +08:00
2026-10-04 03:01:34 +08:00
2026-10-15 05:20:24 +02:00
2026-09-27 14:42:26 +08:00
2026-10-07 13:46:58 +08:00
2026-10-07 13:46:58 +08:00
2026-10-07 13:12:14 +08:00
2026-10-15 05:20:24 +02:00
2026-10-04 03:01:34 +08:00
2026-10-08 02:39:32 +08:00
2026-09-27 14:42:26 +08:00
2026-08-07 06:48:09 +08:00
2026-10-09 20:26:25 +08:00
2026-10-12 19:42:54 +08:00