ai 6.0.268 → 6.0.270
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 +17 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +151 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -9
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/test/index.d.mts +4 -1
- package/dist/test/index.d.ts +4 -1
- package/dist/test/index.js +6 -0
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +6 -0
- package/dist/test/index.mjs.map +1 -1
- package/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +6 -2
- package/package.json +3 -3
- package/src/embed/embed-many.ts +75 -6
- package/src/middleware/wrap-embedding-model.ts +8 -1
- package/src/model/get-embedding-model-max-input-bytes-per-call.ts +15 -0
- package/src/test/mock-embedding-model-v3.ts +9 -0
- package/src/ui/last-assistant-message-is-complete-with-approval-responses.ts +1 -0
- package/src/util/create-stitchable-stream.ts +35 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.270
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8bc01a1: Allow chats to continue automatically after tool approval denials reach the `output-denied` state.
|
|
8
|
+
- fa01949: Handle stitchable stream cancellation before an inner stream is registered.
|
|
9
|
+
|
|
10
|
+
## 6.0.269
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 9a521b9: Split OpenAI and Azure OpenAI embedding requests by a conservative UTF-8 byte budget derived from their aggregate token limit, in addition to input count limits.
|
|
15
|
+
- Updated dependencies [8ddf255]
|
|
16
|
+
- Updated dependencies [9a521b9]
|
|
17
|
+
- @ai-sdk/gateway@3.0.184
|
|
18
|
+
- @ai-sdk/provider-utils@4.0.49
|
|
19
|
+
|
|
3
20
|
## 6.0.268
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -4486,8 +4486,9 @@ interface EmbedManyResult {
|
|
|
4486
4486
|
* Embed several values using an embedding model. The type of the value is defined
|
|
4487
4487
|
* by the embedding model.
|
|
4488
4488
|
*
|
|
4489
|
-
* `embedMany` automatically splits large requests into smaller chunks
|
|
4490
|
-
* has a limit on
|
|
4489
|
+
* `embedMany` automatically splits large requests into smaller chunks when the
|
|
4490
|
+
* model has a limit on either the number of embeddings or the UTF-8 input bytes
|
|
4491
|
+
* that can be processed in a single call.
|
|
4491
4492
|
*
|
|
4492
4493
|
* @param model - The embedding model to use.
|
|
4493
4494
|
* @param values - The values that should be embedded.
|
package/dist/index.d.ts
CHANGED
|
@@ -4486,8 +4486,9 @@ interface EmbedManyResult {
|
|
|
4486
4486
|
* Embed several values using an embedding model. The type of the value is defined
|
|
4487
4487
|
* by the embedding model.
|
|
4488
4488
|
*
|
|
4489
|
-
* `embedMany` automatically splits large requests into smaller chunks
|
|
4490
|
-
* has a limit on
|
|
4489
|
+
* `embedMany` automatically splits large requests into smaller chunks when the
|
|
4490
|
+
* model has a limit on either the number of embeddings or the UTF-8 input bytes
|
|
4491
|
+
* that can be processed in a single call.
|
|
4491
4492
|
*
|
|
4492
4493
|
* @param model - The embedding model to use.
|
|
4493
4494
|
* @param values - The values that should be embedded.
|