diff --git a/servers/fastapi/chroma/chroma.sqlite3 b/servers/fastapi/chroma/chroma.sqlite3 index cfcbd713..c7565944 100644 Binary files a/servers/fastapi/chroma/chroma.sqlite3 and b/servers/fastapi/chroma/chroma.sqlite3 differ diff --git a/servers/nextjs/app/api/presentation_to_pptx_model/route.ts b/servers/nextjs/app/api/presentation_to_pptx_model/route.ts index 0343e7ac..3c25bf42 100644 --- a/servers/nextjs/app/api/presentation_to_pptx_model/route.ts +++ b/servers/nextjs/app/api/presentation_to_pptx_model/route.ts @@ -232,7 +232,7 @@ async function getAllChildElementsAttributes({ element, rootRect = null, depth = for (const childElementHandle of directChildElementHandles) { const attributes = await getElementAttributes(childElementHandle); - if (attributes.tagName === "style") { + if (['style', 'script', 'link', 'meta', 'path'].includes(attributes.tagName)) { continue; } @@ -268,8 +268,8 @@ async function getAllChildElementsAttributes({ element, rootRect = null, depth = allResults.push({ attributes, depth }); - //? If the element is a svg, canvas, or table, we don't need to go deeper - if (attributes.should_screenshot) { + //? If the element is a canvas, or table, we don't need to go deeper + if (attributes.should_screenshot && attributes.tagName !== 'svg') { continue; } diff --git a/servers/nextjs/package.json b/servers/nextjs/package.json index 53266d92..975236dc 100644 --- a/servers/nextjs/package.json +++ b/servers/nextjs/package.json @@ -37,7 +37,6 @@ "@tiptap/extension-underline": "^2.0.0", "@tiptap/react": "^2.11.5", "@tiptap/starter-kit": "^2.11.5", - "@types/sharp": "^0.32.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "cmdk": "^1.0.0",