@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 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.includes(question.type)) throw new Experimental_DecisionUnsupportedQuestionTypeError({
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,