mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 21:59:25 +00:00
feat(asset): replace mediaType/mimeType logic with proxyType
This commit is contained in:
@@ -77,6 +77,14 @@ export function createReadPdfPagesTool(
|
||||
}
|
||||
}
|
||||
|
||||
const proxyType = (asset.media as PrismaJson.MediaInfo | null)?.proxyType
|
||||
if (proxyType && proxyType !== 'pdf') {
|
||||
return {
|
||||
content: [{ type: 'text', text: `Asset ${targetAssetId} is not a PDF or document.` }],
|
||||
details: {},
|
||||
}
|
||||
}
|
||||
|
||||
// Fetch trigger comment details for comment page and annotations
|
||||
let commentTimestamp: number | null = null
|
||||
let annotations: unknown = null
|
||||
|
||||
Reference in New Issue
Block a user