Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LlamaIndexTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
LlamaIndexTS
Commits
da06e455
Unverified
Commit
da06e455
authored
3 days ago
by
Parham Saidi
Committed by
GitHub
3 days ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: include inline data check for GoogleStudio (#1769)
parent
3fd4cc38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.changeset/early-singers-look.md
+5
-0
5 additions, 0 deletions
.changeset/early-singers-look.md
packages/providers/google/src/studio/utils.ts
+1
-1
1 addition, 1 deletion
packages/providers/google/src/studio/utils.ts
with
6 additions
and
1 deletion
.changeset/early-singers-look.md
0 → 100644
+
5
−
0
View file @
da06e455
---
"
@llamaindex/google"
:
patch
---
fix: don't ignore parts that only have inline data for google studio
This diff is collapsed.
Click to expand it.
packages/providers/google/src/studio/utils.ts
+
1
−
1
View file @
da06e455
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment