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