()
| 168 | 'Opus is experiencing high load, please use /model to switch to Sonnet' |
| 169 | export const API_TIMEOUT_ERROR_MESSAGE = 'Request timed out' |
| 170 | export function getPdfTooLargeErrorMessage(): string { |
| 171 | const limits = `max ${API_PDF_MAX_PAGES} pages, ${formatFileSize(PDF_TARGET_RAW_SIZE)}` |
| 172 | return getIsNonInteractiveSession() |
| 173 | ? `PDF too large (${limits}). Try reading the file a different way (e.g., extract text with pdftotext).` |
| 174 | : `PDF too large (${limits}). Double press esc to go back and try again, or use pdftotext to convert to text first.` |
| 175 | } |
| 176 | export function getPdfPasswordProtectedErrorMessage(): string { |
| 177 | return getIsNonInteractiveSession() |
| 178 | ? 'PDF is password protected. Try using a CLI tool to extract or convert the PDF.' |
no test coverage detected