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
No related branches found
No related tags found
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 = < ...@@ -124,7 +124,7 @@ export const mapChatMessagesToGoogleMessages = <
return mapMessageContentToMessageContentDetails(msg.content) return mapMessageContentToMessageContentDetails(msg.content)
.map((detail: MessageContentDetail): ContentUnion | null => { .map((detail: MessageContentDetail): ContentUnion | null => {
const part = mapMessageContentDetailToGooglePart(detail); const part = mapMessageContentDetailToGooglePart(detail);
if (!part.text) return null; if (!part.text && !part.inlineData) return null;
return { return {
role: msg.role === "assistant" ? "model" : "user", role: msg.role === "assistant" ? "model" : "user",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment