@ai-sdk/provider-utils 5.0.53 → 5.0.55

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,34 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.55
4
+
5
+ ### Patch Changes
6
+
7
+ - fc1e19e: fix: limit jsonl rows to 64mb during batch result downloads
8
+ - 5094ebd: fix(provider-utils): preserve parallel tool calls when stream labels are missing or reused
9
+ - 268225c: feat(provider): add a portable `max` reasoning level with native provider mappings, compatibility coercions, and budget-based fallback support.
10
+
11
+ Compatibility notes:
12
+
13
+ - **TypeScript source compatibility:** Adding `max` widens `LanguageModelV4CallOptions['reasoning']` and the derived `ReasoningLevel` type. Third-party providers and consumers with exhaustive switches or `Record<ReasoningLevel, ...>` mappings must handle `max` before upgrading. Ordinary calls using existing reasoning levels remain accepted.
14
+ - **Amazon Bedrock:** Existing Nova 2 calls using portable `reasoning: 'xhigh'` now send `maxReasoningEffort: 'high'` instead of the unsupported `'max'`, and return a compatibility warning. Anthropic and OpenAI Bedrock effort mappings retain their existing `xhigh` behavior. Partial Bedrock reasoning configurations continue to preserve explicit values and derive missing fields; explicit effort/budget overrides and disabled thinking no longer emit warnings for portable mappings that are not sent.
15
+ - **Fireworks:** Existing portable `minimal` and `xhigh` calls keep their request mappings to `low` and `high`, respectively, and now return compatibility warnings in generation and streaming results. Portable `max` maps to `high` with the same warning behavior.
16
+
17
+ **Release classification:** This remains a patch changeset under the repository's explicit release policy, which uses patch releases for both fixes and features. The TypeScript source-compatibility caveat for exhaustive consumers is disclosed above. Maintainers can override this classification with a `major` label if they decide to align the provider-spec addition with a future AI SDK major release.
18
+
19
+ - 0af2f7c: chore: upgrade to TypeScript 6
20
+ - Updated dependencies [268225c]
21
+ - @ai-sdk/provider@4.0.23
22
+
23
+ ## 5.0.54
24
+
25
+ ### Patch Changes
26
+
27
+ - 2959d35: feat: rename `evaluate` to `decide`
28
+ - 59116e6: fix(groq,google): use JSON response tool for structured outputs with tool calling
29
+ - Updated dependencies [2959d35]
30
+ - @ai-sdk/provider@4.0.22
31
+
3
32
  ## 5.0.53
4
33
 
5
34
  ### Patch Changes
@@ -0,0 +1,29 @@
1
+ import { Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Result, LanguageModelV4 } from "@ai-sdk/provider";
2
+ import { WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE } from "@workflow/serde";
3
+ //#region src/decision-language-model.d.ts
4
+ /** Adapts structured language-model output to Choice, Score, and Boolean decisions. */
5
+ declare class DecisionLanguageModel implements Experimental_DecisionModelV4 {
6
+ readonly specificationVersion = "v4";
7
+ readonly supportedQuestionTypes: readonly ["choice", "score", "boolean"];
8
+ readonly provider: string;
9
+ private readonly model;
10
+ constructor({ model, provider }: {
11
+ model: LanguageModelV4;
12
+ provider?: string;
13
+ });
14
+ get modelId(): string;
15
+ static [WORKFLOW_SERIALIZE](model: DecisionLanguageModel): {
16
+ model: LanguageModelV4;
17
+ provider: string;
18
+ };
19
+ static [WORKFLOW_DESERIALIZE](options: {
20
+ model: LanguageModelV4;
21
+ provider: string;
22
+ }): DecisionLanguageModel;
23
+ /** @deprecated Use `doDecide` instead. */
24
+ doEvaluate(options: Parameters<Experimental_DecisionModelV4['doDecide']>[0]): Promise<Experimental_DecisionModelV4Result>;
25
+ doDecide({ state, questions, abortSignal, headers, providerOptions }: Experimental_DecisionModelV4CallOptions): Promise<Experimental_DecisionModelV4Result>;
26
+ }
27
+ //#endregion
28
+ export { DecisionLanguageModel as Experimental_DecisionLanguageModel };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":["DecisionModelV4","DecisionModelV4Result","DecisionModelV4CallOptions"],"sources":["../../src/decision-language-model.ts"],"mappings":";;;;cAea,iCAAiCA;WACnC;WACA;WACA;mBACQ;EAEL,cACV,OACA;IAEA,OAAO;IACP;;MAYE;UAII,oBAAoB,OAAO;;;;UAK3B,sBAAsB;IAC5B,OAAO;IACP;MACD;;EAKD,WAAW,SAAS,WAAWA,+CAA+B,QAAAC;EAIxD,WACJ,OACA,WACA,aACA,SACA,mBACCC,0CAA6B,QAAQD"}