@ai-sdk/provider-utils 5.0.60 → 5.0.62
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 +15 -0
- package/dist/experimental-decision/index.js +1 -1
- package/dist/experimental-decision/index.js.map +1 -1
- package/dist/experimental-evaluation/index.js +1 -1
- package/dist/experimental-evaluation/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/decision-language-model.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 5.0.62
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0957554: Add `box` decision question type with image bounds for TypeSafe AI.
|
|
8
|
+
- Updated dependencies [0957554]
|
|
9
|
+
- @ai-sdk/provider@4.0.29
|
|
10
|
+
|
|
11
|
+
## 5.0.61
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [130e871]
|
|
16
|
+
- @ai-sdk/provider@4.0.28
|
|
17
|
+
|
|
3
18
|
## 5.0.60
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1219,7 +1219,7 @@ var DecisionLanguageModel = class DecisionLanguageModel {
|
|
|
1219
1219
|
abortSignal?.throwIfAborted();
|
|
1220
1220
|
for (const part of state) if (part.type === "file" && getTopLevelMediaType(part.mediaType) !== "image") throw new UnsupportedFunctionalityError({ functionality: `Decision file media type: ${part.mediaType}` });
|
|
1221
1221
|
const entries = Object.entries(questions).map(([id, question]) => {
|
|
1222
|
-
if (!this.supportedQuestionTypes.
|
|
1222
|
+
if (!this.supportedQuestionTypes.some((type) => type === question.type)) throw new Experimental_DecisionUnsupportedQuestionTypeError({
|
|
1223
1223
|
questionId: id,
|
|
1224
1224
|
questionType: question.type,
|
|
1225
1225
|
provider: this.provider,
|