ai 5.0.0-beta.2 → 5.0.0-beta.20
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/CHANGELOG.md +140 -0
- package/dist/bin/ai.js +4664 -0
- package/dist/bin/ai.js.map +1 -0
- package/dist/bin/ai.min.js +78 -0
- package/dist/index.d.mts +2646 -2468
- package/dist/index.d.ts +2646 -2468
- package/dist/index.js +8460 -8241
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8397 -8181
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +49 -20
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +49 -20
- package/dist/internal/index.mjs.map +1 -1
- package/dist/mcp-stdio/index.js +3 -3
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs +3 -3
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/dist/test/index.d.mts +40 -2
- package/dist/test/index.d.ts +40 -2
- package/dist/test/index.js +54 -4
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +51 -4
- package/dist/test/index.mjs.map +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,145 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-beta.20
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 4c8f834: feat: automatically respect rate limit headers in retry logic
|
8
|
+
|
9
|
+
Added automatic support for respecting rate limit headers (`retry-after-ms` and `retry-after`) in the SDK's retry logic. When these headers are present and contain reasonable values (0-60 seconds), the retry mechanism will use the server-specified delay instead of exponential backoff. This matches the behavior of Anthropic and OpenAI client SDKs and improves rate limit handling without requiring any API changes.
|
10
|
+
|
11
|
+
## 5.0.0-beta.19
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- 10b21eb: feat(cli): add ai command line interface
|
16
|
+
- 75c3396: fix (ai): handle errors in 2nd streamText doStream call
|
17
|
+
- 05d2819: feat: allow zod 4.x as peer dependency
|
18
|
+
- db64cbe: fix (provider/openai): multi-step reasoning with tool calls
|
19
|
+
- Updated dependencies [05d2819]
|
20
|
+
- @ai-sdk/provider-utils@3.0.0-beta.3
|
21
|
+
- @ai-sdk/gateway@1.0.0-beta.8
|
22
|
+
|
23
|
+
## 5.0.0-beta.18
|
24
|
+
|
25
|
+
### Patch Changes
|
26
|
+
|
27
|
+
- d3960e3: selectTelemetryAttributes more robustness
|
28
|
+
- 9338f3e: fix (ai): throw error for v1 models
|
29
|
+
|
30
|
+
## 5.0.0-beta.17
|
31
|
+
|
32
|
+
### Patch Changes
|
33
|
+
|
34
|
+
- Updated dependencies [c190907]
|
35
|
+
- @ai-sdk/gateway@1.0.0-beta.7
|
36
|
+
|
37
|
+
## 5.0.0-beta.16
|
38
|
+
|
39
|
+
### Patch Changes
|
40
|
+
|
41
|
+
- Updated dependencies [9e16bfd]
|
42
|
+
- @ai-sdk/gateway@1.0.0-beta.6
|
43
|
+
|
44
|
+
## 5.0.0-beta.15
|
45
|
+
|
46
|
+
### Patch Changes
|
47
|
+
|
48
|
+
- 8e31d46: feat (ai): export SourceDocumentUIPart
|
49
|
+
|
50
|
+
## 5.0.0-beta.14
|
51
|
+
|
52
|
+
### Patch Changes
|
53
|
+
|
54
|
+
- Updated dependencies [30ab1de]
|
55
|
+
- @ai-sdk/gateway@1.0.0-beta.5
|
56
|
+
|
57
|
+
## 5.0.0-beta.13
|
58
|
+
|
59
|
+
### Patch Changes
|
60
|
+
|
61
|
+
- 377bbcf: fix (ui): tool input can be undefined during input-streaming
|
62
|
+
- ce1d1f3: feat (ai): export mock image, speech, and transcription models
|
63
|
+
- c040e2f: fix (ui): inject generated response message id
|
64
|
+
- c808e4d: fix (ui): do not send changing assistant message ids when onFinish is provided
|
65
|
+
|
66
|
+
## 5.0.0-beta.12
|
67
|
+
|
68
|
+
### Patch Changes
|
69
|
+
|
70
|
+
- fc0380b: feat (ui): resolvable header, body, credentials in http chat transport
|
71
|
+
- 51f497d: feat (ai): step input message modification in prepareStep
|
72
|
+
- 4f3776c: feat (ai): add InferUITools helper
|
73
|
+
|
74
|
+
## 5.0.0-beta.11
|
75
|
+
|
76
|
+
### Patch Changes
|
77
|
+
|
78
|
+
- 9e40cbe: Allow destructuring output and errorText on `ToolUIPart` type
|
79
|
+
|
80
|
+
## 5.0.0-beta.10
|
81
|
+
|
82
|
+
### Major Changes
|
83
|
+
|
84
|
+
- 2b637d6: chore (ai): rename UIMessageStreamPart to UIMessageChunk
|
85
|
+
|
86
|
+
### Patch Changes
|
87
|
+
|
88
|
+
- 16ccfb2: feat (ai): add readUIMessageStream helper
|
89
|
+
- 90ca2b9: feat(ai): Record tool call errors on tool call spans recorded in `generateText` and `streamText`.
|
90
|
+
- af1d5a5: fix(ai): Unexpected reasoning-start event in extract reasoning middleware
|
91
|
+
|
92
|
+
## 5.0.0-beta.9
|
93
|
+
|
94
|
+
### Patch Changes
|
95
|
+
|
96
|
+
- 86cfc72: feat (ai): add ignoreIncompleteToolCalls option to convertToModelMessages
|
97
|
+
|
98
|
+
## 5.0.0-beta.8
|
99
|
+
|
100
|
+
### Patch Changes
|
101
|
+
|
102
|
+
- 6909543: feat (ai): support system parameter in Agent constructor
|
103
|
+
- c8fce91: feat (ai): add experimental Agent abstraction
|
104
|
+
- 9121250: Expose provider metadata as an attribute on exported OTEL spans
|
105
|
+
- Updated dependencies [97fedf9]
|
106
|
+
- @ai-sdk/gateway@1.0.0-beta.4
|
107
|
+
|
108
|
+
## 5.0.0-beta.7
|
109
|
+
|
110
|
+
### Patch Changes
|
111
|
+
|
112
|
+
- 60132dd: fixed date formatting for updated mcp protocol version
|
113
|
+
|
114
|
+
## 5.0.0-beta.6
|
115
|
+
|
116
|
+
### Patch Changes
|
117
|
+
|
118
|
+
- 143c55b: feat (ai): export Chat callback types
|
119
|
+
- f04ffe4: feat (ui): add onData callback to Chat
|
120
|
+
- 97c35c0: feat (ui): transient data parts
|
121
|
+
- fccf75c: update mcp protocol version
|
122
|
+
|
123
|
+
## 5.0.0-beta.5
|
124
|
+
|
125
|
+
### Patch Changes
|
126
|
+
|
127
|
+
- 4f3e637: fix (ui): avoid caching globalThis.fetch in case it is patched by other libraries
|
128
|
+
|
129
|
+
## 5.0.0-beta.4
|
130
|
+
|
131
|
+
### Patch Changes
|
132
|
+
|
133
|
+
- 09f41ac: fix (ui): add message metadata in Chat.sendMessage
|
134
|
+
|
135
|
+
## 5.0.0-beta.3
|
136
|
+
|
137
|
+
### Patch Changes
|
138
|
+
|
139
|
+
- Updated dependencies [f3639fa]
|
140
|
+
- Updated dependencies [d454e4b]
|
141
|
+
- @ai-sdk/gateway@1.0.0-beta.3
|
142
|
+
|
3
143
|
## 5.0.0-beta.2
|
4
144
|
|
5
145
|
### Patch Changes
|