@isnolan/bodhi-adapter
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -219,3 +219,3 @@ // src/types/provider.ts | ||
} | ||
if (part.type === "file" && part.mime_type?.startsWith("image")) { | ||
if (part.type === "file" && part.mimetype?.startsWith("image")) { | ||
parts.push({ type: "image_url", image_url: { url: part.url } }); | ||
@@ -388,5 +388,5 @@ } | ||
if (part.type === "file") { | ||
const { mime_type, url } = part; | ||
const { mimetype: mimeType, url } = part; | ||
if (url.startsWith("gs://")) { | ||
parts.push({ fileData: { mimeType: mime_type, fileUri: url } }); | ||
parts.push({ fileData: { mimeType, fileUri: url } }); | ||
} else { | ||
@@ -393,0 +393,0 @@ try { |
{ | ||
"name": "@isnolan/bodhi-adapter", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"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
413802