// API limits — keep this file dep-free to avoid circular imports // Last verified: 2025-12-22 // image limits const int apiImageMaxBase64Size = 5 * 1024 * 1024; // 5 MB const int imageTargetRawSize = (apiImageMaxBase64Size * 3) ~/ 4; // 3.75 MB const int imageMaxWidth = 2000; const int imageMaxHeight = 2000; // pdf limits const int pdfTargetRawSize = 20 * 1024 * 1024; // 20 MB const int apiPdfMaxPages = 100; const int pdfExtractSizeThreshold = 3 * 1024 * 1024; // 3 MB const int pdfMaxExtractSize = 100 * 1024 * 1024; // 100 MB const int pdfMaxPagesPerRead = 20; const int pdfAtMentionInlineThreshold = 10; // media limits const int apiMaxMediaPerRequest = 100;