ai-retry 2.0.0-beta.4 → 2.0.0
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.
- package/README.md +2 -2
- package/package.json +16 -15
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Two retry shapes are supported:
|
|
|
25
25
|
>
|
|
26
26
|
> - `ai-retry@0.x` — AI SDK v5
|
|
27
27
|
> - `ai-retry@1.x` — AI SDK v6
|
|
28
|
-
> - `ai-retry@2.x`
|
|
28
|
+
> - `ai-retry@2.x` — AI SDK v7
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
npm install ai-retry
|
|
@@ -810,7 +810,7 @@ Result-based conditions (`finishReason`, `schemaInvalid`, `result(...)`) apply t
|
|
|
810
810
|
The function-style helpers (`contentFilterTriggered`, `requestTimeout`, `requestNotRetryable`, `retryAfterDelay`, `schemaMismatch`, `serviceOverloaded`, `serviceUnavailable`, `noImageGenerated`) are still exported from `ai-retry/retryables` for backwards compatibility, but they are deprecated in favor of the condition API documented above.
|
|
811
811
|
|
|
812
812
|
> [!NOTE]
|
|
813
|
-
> Full documentation for the deprecated function-style retryables lives in the [earlier README](https://github.com/zirkelc/ai-retry/blob/v1/README.md). New code should use the condition API. See the [migration guide](./MIGRATION.md) to convert existing code.
|
|
813
|
+
> Full documentation for the deprecated function-style retryables lives in the [earlier README](https://github.com/zirkelc/ai-retry/blob/v1.x/README.md). New code should use the condition API. See the [migration guide](./MIGRATION.md) to convert existing code.
|
|
814
814
|
|
|
815
815
|
Each function-style retryable has a one-line equivalent in the new shape (imports from `ai-retry/language-model` unless noted):
|
|
816
816
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-retry",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Retry and fallback mechanisms for AI SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ai-sdk/anthropic": "4.0.0
|
|
38
|
-
"@ai-sdk/azure": "4.0.0
|
|
39
|
-
"@ai-sdk/gateway": "4.0.0
|
|
40
|
-
"@ai-sdk/google": "4.0.0
|
|
41
|
-
"@ai-sdk/groq": "4.0.0
|
|
42
|
-
"@ai-sdk/openai": "4.0.0
|
|
43
|
-
"@ai-sdk/otel": "1.0.0
|
|
44
|
-
"@ai-sdk/provider": "4.0.0
|
|
45
|
-
"@ai-sdk/provider-utils": "5.0.0
|
|
46
|
-
"@ai-sdk/test-server": "2.0.0
|
|
37
|
+
"@ai-sdk/anthropic": "4.0.0",
|
|
38
|
+
"@ai-sdk/azure": "4.0.0",
|
|
39
|
+
"@ai-sdk/gateway": "4.0.0",
|
|
40
|
+
"@ai-sdk/google": "4.0.0",
|
|
41
|
+
"@ai-sdk/groq": "4.0.0",
|
|
42
|
+
"@ai-sdk/openai": "4.0.0",
|
|
43
|
+
"@ai-sdk/otel": "1.0.0",
|
|
44
|
+
"@ai-sdk/provider": "4.0.0",
|
|
45
|
+
"@ai-sdk/provider-utils": "5.0.0",
|
|
46
|
+
"@ai-sdk/test-server": "2.0.0",
|
|
47
47
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
48
48
|
"@langfuse/otel": "^5.5.3",
|
|
49
49
|
"@langfuse/tracing": "^5.5.3",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
55
55
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
56
56
|
"@types/node": "^25.0.10",
|
|
57
|
-
"ai": "7.0.0
|
|
57
|
+
"ai": "7.0.0",
|
|
58
|
+
"ai-test-kit": "3.0.0-next.2",
|
|
58
59
|
"husky": "^9.1.7",
|
|
59
60
|
"lint-staged": "^16.4.0",
|
|
60
61
|
"msw": "^2.12.7",
|
|
@@ -69,10 +70,10 @@
|
|
|
69
70
|
"zod": "^4.3.6"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
|
-
"@ai-sdk/provider": "^4.0.0
|
|
73
|
-
"@ai-sdk/provider-utils": "^5.0.0
|
|
73
|
+
"@ai-sdk/provider": "^4.0.0",
|
|
74
|
+
"@ai-sdk/provider-utils": "^5.0.0",
|
|
74
75
|
"@opentelemetry/api": "^1.9.0",
|
|
75
|
-
"ai": "^7.0.0
|
|
76
|
+
"ai": "^7.0.0",
|
|
76
77
|
"zod": "^4.0.0"
|
|
77
78
|
},
|
|
78
79
|
"peerDependenciesMeta": {
|