ai 7.0.94 → 7.0.95
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 +6 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-ai-sdk-core/35-image-generation.mdx +2 -0
- package/docs/03-ai-sdk-core/42-batch.mdx +272 -0
- package/docs/03-ai-sdk-core/index.mdx +5 -0
- package/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +13 -11
- package/docs/06-advanced/04-caching.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +155 -0
- package/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
- package/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
- package/docs/07-reference/01-ai-sdk-core/index.mdx +15 -0
- package/package.json +3 -3
- package/src/embed/embed.ts +8 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1178,7 +1178,7 @@ import {
|
|
|
1178
1178
|
} from "@ai-sdk/provider-utils";
|
|
1179
1179
|
|
|
1180
1180
|
// src/version.ts
|
|
1181
|
-
var VERSION = true ? "7.0.
|
|
1181
|
+
var VERSION = true ? "7.0.95" : "0.0.0-test";
|
|
1182
1182
|
|
|
1183
1183
|
// src/util/download/download.ts
|
|
1184
1184
|
var download = async ({
|
|
@@ -13043,6 +13043,12 @@ async function embed({
|
|
|
13043
13043
|
},
|
|
13044
13044
|
callbacks: [telemetryDispatcher.onEmbedEnd]
|
|
13045
13045
|
});
|
|
13046
|
+
if (embedding2 == null) {
|
|
13047
|
+
throw new InvalidResponseDataError({
|
|
13048
|
+
data: modelResponse.embeddings,
|
|
13049
|
+
message: "No embedding generated."
|
|
13050
|
+
});
|
|
13051
|
+
}
|
|
13046
13052
|
return {
|
|
13047
13053
|
embedding: embedding2,
|
|
13048
13054
|
usage: usage2,
|