langchain 0.3.17 → 0.3.18

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.
@@ -589,7 +589,7 @@ fields) {
589
589
  ...(fields ?? {}),
590
590
  };
591
591
  if (modelProvider === undefined && model?.includes(":")) {
592
- const modelComponents = model.split(":", 1);
592
+ const modelComponents = model.split(":", 2);
593
593
  if (_SUPPORTED_PROVIDERS.includes(modelComponents[0])) {
594
594
  // eslint-disable-next-line no-param-reassign
595
595
  [modelProvider, model] = modelComponents;
@@ -585,7 +585,7 @@ fields) {
585
585
  ...(fields ?? {}),
586
586
  };
587
587
  if (modelProvider === undefined && model?.includes(":")) {
588
- const modelComponents = model.split(":", 1);
588
+ const modelComponents = model.split(":", 2);
589
589
  if (_SUPPORTED_PROVIDERS.includes(modelComponents[0])) {
590
590
  // eslint-disable-next-line no-param-reassign
591
591
  [modelProvider, model] = modelComponents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {