@langchain/core 0.1.41 → 0.1.42

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.
@@ -15,14 +15,11 @@ const STATUS_NO_RETRY = [
15
15
  405,
16
16
  406,
17
17
  407,
18
- 408,
19
18
  409, // Conflict
20
19
  ];
21
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
21
  const defaultFailedAttemptHandler = (error) => {
23
22
  if (error.message.startsWith("Cancel") ||
24
- error.message.startsWith("TimeoutError") ||
25
- error.name === "TimeoutError" ||
26
23
  error.message.startsWith("AbortError") ||
27
24
  error.name === "AbortError") {
28
25
  throw error;
@@ -9,14 +9,11 @@ const STATUS_NO_RETRY = [
9
9
  405,
10
10
  406,
11
11
  407,
12
- 408,
13
12
  409, // Conflict
14
13
  ];
15
14
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
15
  const defaultFailedAttemptHandler = (error) => {
17
16
  if (error.message.startsWith("Cancel") ||
18
- error.message.startsWith("TimeoutError") ||
19
- error.name === "TimeoutError" ||
20
17
  error.message.startsWith("AbortError") ||
21
18
  error.name === "AbortError") {
22
19
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {