ai 5.1.0-beta.5 → 5.1.0-beta.7

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/dist/index.mjs CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  dynamicTool as dynamicTool2,
13
13
  generateId as generateId2,
14
14
  jsonSchema as jsonSchema2,
15
+ parseJsonEventStream as parseJsonEventStream3,
15
16
  tool as tool2,
16
17
  zodSchema
17
18
  } from "@ai-sdk/provider-utils";
@@ -463,7 +464,7 @@ function resolveLanguageModel(model) {
463
464
  }
464
465
  function resolveEmbeddingModel(model) {
465
466
  if (typeof model !== "string") {
466
- if (model.specificationVersion !== "v2") {
467
+ if (model.specificationVersion !== "v3") {
467
468
  throw new UnsupportedModelVersionError({
468
469
  version: model.specificationVersion,
469
470
  provider: model.provider,
@@ -678,7 +679,7 @@ import {
678
679
  } from "@ai-sdk/provider-utils";
679
680
 
680
681
  // src/version.ts
681
- var VERSION = true ? "5.1.0-beta.5" : "0.0.0-test";
682
+ var VERSION = true ? "5.1.0-beta.7" : "0.0.0-test";
682
683
 
683
684
  // src/util/download/download.ts
684
685
  var download = async ({ url }) => {
@@ -10451,6 +10452,7 @@ export {
10451
10452
  jsonSchema2 as jsonSchema,
10452
10453
  lastAssistantMessageIsCompleteWithToolCalls,
10453
10454
  modelMessageSchema,
10455
+ parseJsonEventStream3 as parseJsonEventStream,
10454
10456
  parsePartialJson,
10455
10457
  pipeTextStreamToResponse,
10456
10458
  pipeUIMessageStreamToResponse,
@@ -10465,6 +10467,7 @@ export {
10465
10467
  systemModelMessageSchema,
10466
10468
  tool2 as tool,
10467
10469
  toolModelMessageSchema,
10470
+ uiMessageChunkSchema,
10468
10471
  userModelMessageSchema,
10469
10472
  validateUIMessages,
10470
10473
  wrapLanguageModel,