MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / is_binary_asset_mime

Method is_binary_asset_mime

crates/opencode-session/src/prompt.rs:678–680  ·  view source on GitHub ↗
(mime: &str)

Source from the content-addressed store, hash-verified

676 }
677
678 fn is_binary_asset_mime(mime: &str) -> bool {
679 mime.starts_with("image/") || mime == "application/pdf"
680 }
681
682 fn slice_lines(text: &str, start: usize, end: Option<usize>) -> String {
683 let lines: Vec<&str> = text.lines().collect();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected