@langchain/core 0.1.56 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -477,7 +477,7 @@ function _coerceMessagePromptTemplateLike(messagePromptTemplateLike) {
477
477
  return { image_url: item.image_url };
478
478
  }
479
479
  else {
480
- throw new Error("Invalid message content");
480
+ return item;
481
481
  }
482
482
  });
483
483
  }
@@ -466,7 +466,7 @@ function _coerceMessagePromptTemplateLike(messagePromptTemplateLike) {
466
466
  return { image_url: item.image_url };
467
467
  }
468
468
  else {
469
- throw new Error("Invalid message content");
469
+ return item;
470
470
  }
471
471
  });
472
472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {