pub fn document_token_estimate(base64_len: usize) -> usizeExpand description
Token cost to charge a ModelContentBlock::Document: a PDF is billed as
its text plus a picture per page, roughly 3000 tokens per ~50 KB page, so
the estimate follows the decoded size and never drops below an image’s.