google.internal._gm_is_provider_uri

(internal) URLs the API resolves SERVER-SIDE and that must therefore never be fetched and inlined: `gs://` Cloud Storage objects (handled inside `resolve_media` itself), Files-API handles, and YouTube videos — a documented `fileData` input on both backends. Fetching a YouTube watch URL inlines the watch PAGE's HTML as base64 "video", which is garbage on the wire.

Reference version

Signature

function google.internal._gm_is_provider_uri(url: string) -> bool

(internal) URLs the API resolves SERVER-SIDE and that must therefore never be fetched and inlined: gs:// Cloud Storage objects (handled inside resolve_media itself), Files-API handles, and YouTube videos — a documented fileData input on both backends. Fetching a YouTube watch URL inlines the watch PAGE's HTML as base64 "video", which is garbage on the wire.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 1311113446