Skip to content

Commit

Permalink
fix(langgraph): use correct image_url format (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Oct 14, 2024
1 parent 302fa6f commit dd4e79d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/react-langgraph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @assistant-ui/react-langgraph

## 0.0.20

### Patch Changes

- fix(langgraph): use correct image_url format

## 0.0.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-langgraph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@assistant-ui/react-langgraph",
"version": "0.0.19",
"version": "0.0.20",
"license": "MIT",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-langgraph/src/useLangGraphRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const useLangGraphRuntime = ({
case "text":
return { type: "text", text: part.text };
case "image":
return { type: "image_url", image_url: part.image };
return { type: "image_url", image_url: { url: part.image } };

case "tool-call":
throw new Error("Tool call appends are not supported yet.");
Expand Down

0 comments on commit dd4e79d

Please sign in to comment.