@isnolan/bodhi-adapter
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -57,3 +57,3 @@ declare enum Provider { | ||
type: 'file'; | ||
mime_type: string; | ||
mimetype: string; | ||
url: string; | ||
@@ -60,0 +60,0 @@ id: string; |
@@ -645,3 +645,3 @@ // src/types/provider.ts | ||
} | ||
if (part.type === "file") { | ||
if (part.type === "file" && part.mimetype?.startsWith("image")) { | ||
try { | ||
@@ -808,3 +808,3 @@ const { mimeType: media_type, data } = await this.fetchFile(part.url); | ||
} | ||
if (part.type === "file") { | ||
if (part.type === "file" && part.mimetype?.startsWith("image")) { | ||
try { | ||
@@ -1095,3 +1095,3 @@ const { mimeType: media_type, data } = await this.fetchFile(part.url); | ||
} | ||
if (["image"].includes(part.type)) { | ||
if (part.type === "file" && part.mimetype?.startsWith("image")) { | ||
parts.push({ image: part.url }); | ||
@@ -1098,0 +1098,0 @@ } |
{ | ||
"name": "@isnolan/bodhi-adapter", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "llms adapter api for bodhi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
414836