@ai-sdk/gateway 3.0.99 → 3.0.101

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
@@ -470,6 +470,17 @@ import {
470
470
  zodSchema as zodSchema4
471
471
  } from "@ai-sdk/provider-utils";
472
472
  import { z as z4 } from "zod/v4";
473
+
474
+ // src/gateway-model-entry.ts
475
+ var KNOWN_MODEL_TYPES = [
476
+ "embedding",
477
+ "image",
478
+ "language",
479
+ "reranking",
480
+ "video"
481
+ ];
482
+
483
+ // src/gateway-fetch-metadata.ts
473
484
  var GatewayFetchMetadata = class {
474
485
  constructor(config) {
475
486
  this.config = config;
@@ -540,8 +551,12 @@ var gatewayAvailableModelsResponseSchema = lazySchema4(
540
551
  provider: z4.string(),
541
552
  modelId: z4.string()
542
553
  }),
543
- modelType: z4.enum(["embedding", "image", "language", "reranking", "video"]).nullish()
554
+ modelType: z4.string().nullish()
544
555
  })
556
+ ).transform(
557
+ (models) => models.filter(
558
+ (m) => m.modelType == null || KNOWN_MODEL_TYPES.includes(m.modelType)
559
+ )
545
560
  )
546
561
  })
547
562
  )
@@ -1651,7 +1666,7 @@ async function getVercelRequestId() {
1651
1666
  import { withUserAgentSuffix } from "@ai-sdk/provider-utils";
1652
1667
 
1653
1668
  // src/version.ts
1654
- var VERSION = true ? "3.0.99" : "0.0.0-test";
1669
+ var VERSION = true ? "3.0.101" : "0.0.0-test";
1655
1670
 
1656
1671
  // src/gateway-provider.ts
1657
1672
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";