Skip to content

Commit 7e491da

Browse files
committed
add compatibility handling
1 parent 5818535 commit 7e491da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/accessMcpResourceTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function accessMcpResourceTool(
7373

7474
resourceResult?.contents.forEach((item) => {
7575
if (item.mimeType?.startsWith("image") && item.blob) {
76-
if (item.mimeType.startsWith("data:")) {
76+
if (item.blob.startsWith("data:")) {
7777
images.push(item.blob)
7878
} else {
7979
images.push(`data:${item.mimeType};base64,` + item.blob)

0 commit comments

Comments
 (0)