Files
hyperframes/packages/cli/src/capture
Michael WangandClaude Opus 5.5 bcc1437d77 fix(capture): validate the Vertex region and model id before captioning (#7533)
* fix(capture): validate the Vertex region and model id before captioning

Vision captioning passes the region and model id to the Google SDK, which
builds the request host from the region and the request path from the model
id. A region that is not a plain Google Cloud region name, or a model id with
URL delimiters, now skips captioning with a warning instead of building a
request. Every real region (including "global") and model id still works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(capture): accept colons inside Google model id segments

Vertex endpoint paths in domain-scoped projects contain a colon
(projects/example.com:proj/...). The colon cannot change the request host,
so allow it inside a segment. Leading slashes, empty segments, percent
signs, query and fragment delimiters stay rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 03:30:00 +00:00
..