@@ -148,8 +148,8 @@ func NewViewTool(lspClients *csync.Map[string, *lsp.Client], permissions permiss
148148 params.Limit = DefaultReadLimit
149149 }
150150
151− isImage, mimeType := getImageMimeType(filePath)
152− if isImage {
151+ isSupportedImage, mimeType := getImageMimeType(filePath)
152+ if isSupportedImage {
153153 if !GetSupportsImagesFromContext(ctx) {
154154 modelName := GetModelNameFromContext(ctx)
155155 return fantasy.NewTextErrorResponse(fmt.Sprintf("This model (%s) does not support image data.", modelName)), nil
@@ -282,10 +282,6 @@ func getImageMimeType(filePath string) (bool, string) {
282282 return true, "image/png"
283283 case ".gif":
284284 return true, "image/gif"
285− case ".bmp":
286− return true, "image/bmp"
287− case ".svg":
288− return true, "image/svg+xml"
289285 case ".webp":
290286 return true, "image/webp"
291287 default: