MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / isImageFilePath

Method isImageFilePath

context/TokenUtils.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool 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
33int TokenUtils::estimateImageAttachmentTokens(const QString &filePath)
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected