ai 7.0.104 → 7.0.105

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.105
4
+
5
+ ### Patch Changes
6
+
7
+ - 6982e9d: Resolve evaluation model IDs through AI Gateway when no default provider is configured, including string aliases in custom providers.
8
+ - Updated dependencies [6982e9d]
9
+ - Updated dependencies [6982e9d]
10
+ - @ai-sdk/gateway@4.0.85
11
+
3
12
  ## 7.0.104
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1129,8 +1129,9 @@ function resolveRerankingModel(model) {
1129
1129
  return asRerankingModelV4(model);
1130
1130
  }
1131
1131
  function resolveEvaluationModel(model) {
1132
+ var _a25;
1132
1133
  if (typeof model === "string") {
1133
- const provider = globalThis.AI_SDK_DEFAULT_PROVIDER;
1134
+ const provider = (_a25 = globalThis.AI_SDK_DEFAULT_PROVIDER) != null ? _a25 : gateway;
1134
1135
  if (typeof (provider == null ? void 0 : provider.evaluationModel) !== "function") {
1135
1136
  throw new NoSuchModelError2({
1136
1137
  modelId: model,
@@ -1210,7 +1211,7 @@ import {
1210
1211
  } from "@ai-sdk/provider-utils";
1211
1212
 
1212
1213
  // src/version.ts
1213
- var VERSION = true ? "7.0.104" : "0.0.0-test";
1214
+ var VERSION = true ? "7.0.105" : "0.0.0-test";
1214
1215
 
1215
1216
  // src/util/download/download.ts
1216
1217
  var download = async ({