google.internal._gm_mime_for_uri

(internal) A `fileData` URI Gemini resolves by itself carries no MIME type we can know (a YouTube watch URL has no extension), so send none rather than the guess `resolve_media` derives from the URL's spelling.

Reference version

Signature

function google.internal._gm_mime_for_uri(url: string, mime: string) -> string | null

(internal) A fileData URI Gemini resolves by itself carries no MIME type we can know (a YouTube watch URL has no extension), so send none rather than the guess resolve_media derives from the URL's spelling.

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