pub fn bounded_embedding_input(text: &str, max_bytes: usize) -> (&str, bool)
Return the longest UTF-8-safe prefix of text within max_bytes and whether it was shortened.
text
max_bytes