@ai-sdk/provider 4.0.8 → 4.0.9

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,11 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 4.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - aa45741: fix(provider/anthropic): preserve native message batch request counts in provider metadata and support the full language-model option surface in batch requests
8
+
3
9
  ## 4.0.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -4954,7 +4954,7 @@ type LanguageModelV4BatchRequest = {
4954
4954
  /**
4955
4955
  * Normalized text-generation options for the request.
4956
4956
  */
4957
- readonly options: Pick<LanguageModelV4CallOptions, 'prompt' | 'maxOutputTokens' | 'temperature' | 'stopSequences' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'seed' | 'reasoning' | 'providerOptions'>;
4957
+ readonly options: Pick<LanguageModelV4CallOptions, 'prompt' | 'maxOutputTokens' | 'temperature' | 'stopSequences' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'seed' | 'reasoning' | 'responseFormat' | 'toolChoice' | 'tools' | 'providerOptions'>;
4958
4958
  };
4959
4959
  /**
4960
4960
  * Language model V4 with durable batch-processing support.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -28,6 +28,9 @@ export type LanguageModelV4BatchRequest = {
28
28
  | 'frequencyPenalty'
29
29
  | 'seed'
30
30
  | 'reasoning'
31
+ | 'responseFormat'
32
+ | 'toolChoice'
33
+ | 'tools'
31
34
  | 'providerOptions'
32
35
  >;
33
36
  };