diff --git a/packages/react-langgraph/CHANGELOG.md b/packages/react-langgraph/CHANGELOG.md index b3963fb45..3c7da8753 100644 --- a/packages/react-langgraph/CHANGELOG.md +++ b/packages/react-langgraph/CHANGELOG.md @@ -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 diff --git a/packages/react-langgraph/package.json b/packages/react-langgraph/package.json index f0cbb9421..d4974f964 100644 --- a/packages/react-langgraph/package.json +++ b/packages/react-langgraph/package.json @@ -1,6 +1,6 @@ { "name": "@assistant-ui/react-langgraph", - "version": "0.0.19", + "version": "0.0.20", "license": "MIT", "exports": { ".": { diff --git a/packages/react-langgraph/src/useLangGraphRuntime.ts b/packages/react-langgraph/src/useLangGraphRuntime.ts index aeb803e44..040233714 100644 --- a/packages/react-langgraph/src/useLangGraphRuntime.ts +++ b/packages/react-langgraph/src/useLangGraphRuntime.ts @@ -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.");