ai.wire.redact_url_secrets
Scrub credential-bearing query parameters out of free text before it becomes an `ai.errors.Failure.detail`.
Reference version
Signature
function ai.wire.redact_url_secrets(text: string) -> string
Scrub credential-bearing query parameters out of free text before it becomes
an ai.errors.Failure.detail.
Providers that authenticate through the URL — Vertex AI express mode puts
the key in ?key=… — would otherwise leak it: the native HTTP layer renders
reqwest::Error, whose Display embeds the request URL, straight into the
transport-failure message.
Source:<builtin>/ai/ns_wire/wire.bamlbytes 2443–2813