Skip to content
Snippets Groups Projects
Unverified Commit da06e455 authored by Parham Saidi's avatar Parham Saidi Committed by GitHub
Browse files

fix: include inline data check for GoogleStudio (#1769)

parent 3fd4cc38
Branches
Tags
No related merge requests found
---
"@llamaindex/google": patch
---
fix: don't ignore parts that only have inline data for google studio
......@@ -124,7 +124,7 @@ export const mapChatMessagesToGoogleMessages = <
return mapMessageContentToMessageContentDetails(msg.content)
.map((detail: MessageContentDetail): ContentUnion | null => {
const part = mapMessageContentDetailToGooglePart(detail);
if (!part.text) return null;
if (!part.text && !part.inlineData) return null;
return {
role: msg.role === "assistant" ? "model" : "user",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment