Download codex-rs/app-server/src/image_url.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server/src/image_url.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server/src/image_url.rs
-
curl -L -o image_url.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server/src/image_url.rs
336 Bytes
| pub(crate) const REMOTE_IMAGE_URL_ERROR: &str = | |
| "remote image URLs are not supported; use an inline data URL instead"; | |
| pub(crate) fn is_remote_image_url(image_url: &str) -> bool { | |
| image_url.split_once(':').is_some_and(|(scheme, _)| { | |
| scheme.eq_ignore_ascii_case("http") || scheme.eq_ignore_ascii_case("https") | |
| }) | |
| } | |