Skip to content

Commit

Permalink
[breadboard-web/gemini-kit] Fix JSONata calls to account for LLM Cont…
Browse files Browse the repository at this point in the history
  • Loading branch information
paullewis authored Apr 30, 2024
1 parent e736f37 commit 5369037
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/twelve-lamps-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@google-labs/breadboard-web": patch
"@google-labs/gemini-kit": patch
---

Fix JSONata calls to account for LLM Content
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"id": "makeBody",
"type": "jsonata",
"configuration": {
"expression": "{ \"contents\": { \"parts\": $.parts }}"
"expression": "{ \"contents\": $.parts[0] }"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/breadboard-web/src/boards/gemini-pro-vision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default await board(() => {

const makeBody = json.jsonata({
$id: "makeBody",
expression: `{ "contents": { "parts": $.parts }}`,
expression: `{ "contents": $.parts[0] }`,
parts: parameters,
});

Expand Down
2 changes: 1 addition & 1 deletion packages/gemini-kit/src/boards/gemini-pro-vision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default await board(() => {

const makeBody = json.jsonata({
$id: "makeBody",
expression: `{ "contents": { "parts": $.parts }}`,
expression: `{ "contents": $.parts[0] }`,
parts: parameters,
});

Expand Down

0 comments on commit 5369037

Please sign in to comment.