fix: read when file is svg

This commit is contained in:
Aiden Cline 2025-12-09 14:24:30 -06:00
parent 75a9c42789
commit 84a0868e66

View file

@ -93,7 +93,7 @@ export const ReadTool = Tool.define("read", {
throw new Error(`File not found: ${filepath}`)
}
const isImage = file.type.startsWith("image/")
const isImage = file.type.startsWith("image/") && file.type !== "image/svg+xml"
const isPdf = file.type === "application/pdf"
if (isImage || isPdf) {
const mime = file.type