From 7d0b267e6cbe1ce5c30ca2fd72417f6374899dcc Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 4 Apr 2024 13:30:37 -0700 Subject: [PATCH] fix --- langchain-core/src/output_parsers/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain-core/src/output_parsers/string.ts b/langchain-core/src/output_parsers/string.ts index f7566688d29c..59476cd9baa7 100644 --- a/langchain-core/src/output_parsers/string.ts +++ b/langchain-core/src/output_parsers/string.ts @@ -69,7 +69,7 @@ export class StringOutputParser extends BaseTransformOutputParser { } break; case "image_url": - if ("url" in content) { + if ("image_url" in content) { // Type guard for MessageContentImageUrl return this._imageUrlContentToString( content as MessageContentImageUrl