| 25 | } |
| 26 | |
| 27 | bool TokenUtils::isImageFilePath(const QString &filePath) |
| 28 | { |
| 29 | static const QSet<QString> imageExtensions = {"png", "jpg", "jpeg", "gif", "webp", "bmp"}; |
| 30 | return imageExtensions.contains(QFileInfo(filePath).suffix().toLower()); |
| 31 | } |
| 32 | |
| 33 | int TokenUtils::estimateImageAttachmentTokens(const QString &filePath) |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected