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 +9 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/docs/03-ai-sdk-core/32-evaluation.mdx +26 -7
- package/docs/03-ai-sdk-core/45-provider-management.mdx +4 -4
- package/docs/07-reference/01-ai-sdk-core/14-evaluate.mdx +9 -9
- package/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +3 -2
- package/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +7 -5
- package/package.json +2 -2
- package/src/model/resolve-model.ts +2 -4
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.
|
|
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 ({
|