From dd4e79df06bc2e5a5d6ce6cb09fcc321bf180e86 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sun, 13 Oct 2024 23:01:49 -0700 Subject: [PATCH] fix(langgraph): use correct image_url format (#1002) --- packages/react-langgraph/CHANGELOG.md | 6 ++++++ packages/react-langgraph/package.json | 2 +- packages/react-langgraph/src/useLangGraphRuntime.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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.");